mirror of
https://github.com/storytold/egui.git
synced 2026-11-25 20:11:49 +01:00
Fix wrong vertical align in default layout
Only seen when having unusually high buttons
This commit is contained in:
1 parent
442b953964
commit
2f46c975a5
1 file changed
+1
-9
+1
-9
@@ -149,15 +149,7 @@ pub struct Layout {
|
||||
impl Default for Layout {
|
||||
fn default() -> Self {
|
||||
// TODO: Get from `Style` instead.
|
||||
// This is a very euro-centric default.
|
||||
Self {
|
||||
main_dir: Direction::TopDown,
|
||||
main_wrap: false,
|
||||
main_align: Align::TOP,
|
||||
main_justify: false,
|
||||
cross_align: Align::LEFT,
|
||||
cross_justify: false,
|
||||
}
|
||||
Self::top_down(Align::LEFT) // This is a very euro-centric default.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user