1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-27 23:13:13 -04:00

A Window can now be resizable in only one direction (#4155)

For instance: `Window::new(…).resizable([true, false])` is a window that
is only resizable in the horizontal direction.

This PR also removes a hack added in
https://github.com/emilk/egui/pull/3039 which is no longer needed since
https://github.com/emilk/egui/pull/4026
This commit is contained in:
Emil Ernerfeldt
2024-03-11 09:29:48 +01:00
committed by GitHub
parent a93c6cd5d2
commit 00a399b2f7
10 changed files with 91 additions and 64 deletions

View File

@@ -75,6 +75,7 @@ impl super::Demo for CodeExample {
.default_size([800.0, 400.0])
.vscroll(false)
.hscroll(true)
.resizable([true, false])
.show(ctx, |ui| self.ui(ui));
}
}