Skip to content

Commit

Permalink
Ensure Window scroll bars are at the window edges (emilk#4733)
Browse files Browse the repository at this point in the history
Set `auto_shrink(false)` on `Window`s `ScrollArea`.
This ensures that the scroll bars are always the outermost.

* Closes emilk#4602
  • Loading branch information
emilk authored and hacknus committed Oct 30, 2024
1 parent 0acf3d8 commit 09ca230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/egui/src/containers/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl<'open> Window<'open> {
.with_stroke(false)
.min_size([96.0, 32.0])
.default_size([340.0, 420.0]), // Default inner size of a window
scroll: ScrollArea::neither(),
scroll: ScrollArea::neither().auto_shrink(false),
collapsible: true,
default_open: true,
with_title_bar: true,
Expand Down

0 comments on commit 09ca230

Please sign in to comment.