Fix wrong vertical align in default layout
Only seen when having unusually high buttons
This commit is contained in:
parent
442b953964
commit
2f46c975a5
1 changed files with 1 additions and 9 deletions
|
@ -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.
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue