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

Control Separator widths, and less clipping in ScrollArea #2665

Merged
merged 8 commits into from
Feb 3, 2023

Conversation

emilk
Copy link
Owner

@emilk emilk commented Feb 3, 2023

Add Separator::grow and Separator::shrink to allow users to control the width of horizontal separators.

To let the separators (and other widgets) to paint "outside the lines", the ScrollArea has been tweaked to only clip its content if absolutely necessary.

@emilk emilk changed the title Emilk/extend separators Control Separator widths, and less clipping in ScrollArea Feb 3, 2023
@emilk emilk merged commit a6b60d5 into master Feb 3, 2023
@emilk emilk deleted the emilk/extend-separators branch February 3, 2023 12:19
lictex pushed a commit to lictex/egui that referenced this pull request Feb 5, 2023
…2665)

* Add Separator::grow and Separator::shrink

* Be more conservative with the clipping in ScrollArea:s

* Add test of the growing separator

* Improve test output

* Update changelog

* Add back a little bit more clipping

* Make the minimum scroll handle length a bit longer

* More clip rect tweaks
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

Successfully merging this pull request may close these issues.

1 participant