Ensure `Window` scroll bars are at the window edges (#4733)
Set `auto_shrink(false)` on `Window`s `ScrollArea`. This ensures that the scroll bars are always the outermost. * Closes https://github.com/emilk/egui/pull/4602
This commit is contained in:
parent
d10b3c1f4e
commit
d4e8966aac
|
|
@ -59,7 +59,7 @@ impl<'open> Window<'open> {
|
||||||
.with_stroke(false)
|
.with_stroke(false)
|
||||||
.min_size([96.0, 32.0])
|
.min_size([96.0, 32.0])
|
||||||
.default_size([340.0, 420.0]), // Default inner size of a window
|
.default_size([340.0, 420.0]), // Default inner size of a window
|
||||||
scroll: ScrollArea::neither(),
|
scroll: ScrollArea::neither().auto_shrink(false),
|
||||||
collapsible: true,
|
collapsible: true,
|
||||||
default_open: true,
|
default_open: true,
|
||||||
with_title_bar: true,
|
with_title_bar: true,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue