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

Scroll bar visibility options #2729

Merged
merged 4 commits into from
Feb 28, 2023

Conversation

IVAN-MK7
Copy link
Contributor

Enables the user to set whether the horizontal and vertical scroll bars must be always visible, hidden or visible when needed, in the context of a ScrollArea.

egui::ScrollArea::vertical().scroll_bar_visibility(ScrollBarVisibility::AlwaysVisible).show(ui, |ui| {});

To consider adding a method for each option in order to shorter and simplify the code, e.g.:
egui::ScrollArea::vertical().scroll_bar_always_visible().show(ui, |ui| {});

Closes #2608.

@IVAN-MK7 IVAN-MK7 marked this pull request as ready for review February 13, 2023 10:07
Copy link
Owner

@emilk emilk left a comment

Choose a reason for hiding this comment

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

Very nice!

@emilk emilk merged commit 5910144 into emilk:master Feb 28, 2023
@IVAN-MK7 IVAN-MK7 deleted the scroll-bar-visibility-options branch March 17, 2023 10:03
@emilk emilk added feature New feature or request egui labels Apr 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
egui feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Option to hide scrollbar
2 participants