Skip to content

Conversation

teddemunnik
Copy link
Contributor

This fixes an issue where a panel could not be resized to a size larger than it's content layout rect when using nested panels. The issue shows both when nesting panels in panels, and when nesting panels in a window. I have created a github project as a repro here:
https://github.com/teddemunnik/egui_inner_panel_repro/blob/master/src/main.rs

egui_bug_before.mp4
egui_bug_after.mp4
  • I have followed the instructions in the PR template

… content layout rect, even if other size constraints are specified on the panel
@emilk
Copy link
Owner

emilk commented Sep 30, 2024

When testing, let's make sure this doesn't break the auto-sizing of panels

@emilk emilk added the egui label Sep 30, 2024
Copy link

Preview available at https://egui-pr-preview.github.io/pr/5186-pr/fix_nested_side_panel
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

@teddemunnik
Copy link
Contributor Author

teddemunnik commented Sep 30, 2024

When testing, let's make sure this doesn't break the auto-sizing of panels

It probably does! My bad, also found the docs regarding this behavior on panels when looking for the auto sizing behavior as you mentioned it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants