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

Shrink Strip cross axis to content #5639

Open
smessmer opened this issue Jan 26, 2025 · 0 comments
Open

Shrink Strip cross axis to content #5639

smessmer opened this issue Jan 26, 2025 · 0 comments

Comments

@smessmer
Copy link

Is your feature request related to a problem? Please describe.
Using Strip is great for getting equal spacing along one axis (horizontal or vertical). This disables egui's default behavior of automatically sizing the widget based on its content. Unfortunately, it also disables that behavior for the other axis and uses up all the space. For example, when I want to equally space three cells horizontally, it will also use up all vertical space and layout any components following the strip below the visible screen area.

Describe the solution you'd like
A setting in Strip that constrains it to one axis, e.g. equally space three cells horizontally, but only take the vertical space used by the largest cell. Any content following the strip should be laid out right below the space needed for the largest cell.

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