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

Can you layout from minimum required sizes by child widgets? #63

Open
cesss opened this issue Feb 14, 2023 · 0 comments
Open

Can you layout from minimum required sizes by child widgets? #63

cesss opened this issue Feb 14, 2023 · 0 comments

Comments

@cesss
Copy link

cesss commented Feb 14, 2023

I don't quite understand the meaning of zero and negative values for the widths and height in a row (yes, I read the Usage doc, but even with that I don't understand what these values actually do).

What I need is to never hardcode any size at all, and just pack the widgets respecting the minimum size they need to be drawn without clipping the text. Sure, some widgets do need a size (a slider for example), but in those cases I'd be fine if such a widget takes all the space which is not requested by the rest of widgets in the row.

Can this be done with the current layout system, or would I need to modify it?

Also, do widgets say what's the minimum size they need? Or maybe that's not implemented?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant