Skip to content

Determine position of plot based on layout direction - #256

Merged
lucasmerlin merged 3 commits into
emilk:mainfrom
tarolling:plots-ignore-ui-layout
Oct 19, 2026
Merged

lucasmerlin merged 3 commits into
emilk:mainfrom
tarolling:plots-ignore-ui-layout

Conversation

@tarolling

@tarolling tarolling commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

The layout is now respected when egui_plot attempts to calculate available rect and anchor position for plots

@github-actions

Copy link
Copy Markdown

View snapshot changes at kitdiff

@tarolling
tarolling marked this pull request as ready for review August 23, 2026 15:58

@lucasmerlin lucasmerlin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I've changed it to use allocate_space instead, which is simpler and should be correct in all cases (even handling wrapping)

@lucasmerlin lucasmerlin added bug Something isn't working include in changelog This change will be included in the changelog labels Oct 19, 2026
@lucasmerlin
lucasmerlin merged commit 086a4e4 into emilk:main Oct 19, 2026
9 of 10 checks passed
@tarolling
tarolling deleted the plots-ignore-ui-layout branch October 19, 2026 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working include in changelog This change will be included in the changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

plots ignore the ui layout

2 participants