Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combo popup size is not constrained to the screen #90

Closed
Tazmondo opened this issue Jan 9, 2025 · 3 comments · Fixed by #91
Closed

Combo popup size is not constrained to the screen #90

Tazmondo opened this issue Jan 9, 2025 · 3 comments · Fixed by #91
Labels
bug Something isn't working

Comments

@Tazmondo
Copy link
Contributor

Tazmondo commented Jan 9, 2025

Occurred after updating from 2.2 to 2.4, likely caused by ec4d167.

When the combo contains a lot of items, the combo size extends up and out of the screen. Since the size is not constrained, the AutomaticCanvasSize never kicks in and the canvas size never increased. This means you can't scroll to reach the off-screen elements.

My initial solution was to add a UISizeConstraint to the combo popup, however there is currently a bug that means this solution does not work.

I think that until this bug is fixed, it would be better to revert to the old behaviour.

image

@Tazmondo
Copy link
Contributor Author

Tazmondo commented Jan 9, 2025

Also willing to make a PR for this, but wanted to hear your thoughts first.

@SirMallard
Copy link
Owner

Thanks for raising this and sorry for not responding earlier. I changed this behaviour to remove unecessary computation, at the cost of potential issues if the box was too high. It could be fixed by doing a delayed update on the box position after all the UI has loaded in, rather than counting contents. I would like to see what solution you come up.

@SirMallard SirMallard added the bug Something isn't working label Jan 17, 2025
@Tazmondo
Copy link
Contributor Author

Sure, I'll work on a solution. I'm thinking https://create.roblox.com/docs/reference/engine/classes/UIListLayout#AbsoluteContentSize may be useful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants