Make Button sizing strategy adaptive
This commit is contained in:
parent
fa53d9adbb
commit
03c901d49b
3 changed files with 20 additions and 13 deletions
|
|
@ -52,16 +52,8 @@ where
|
|||
Container {
|
||||
id: None,
|
||||
padding: Padding::ZERO,
|
||||
width: if size.width.is_fill() {
|
||||
Length::Fill
|
||||
} else {
|
||||
Length::Shrink
|
||||
},
|
||||
height: if size.height.is_fill() {
|
||||
Length::Fill
|
||||
} else {
|
||||
Length::Shrink
|
||||
},
|
||||
width: size.width.fluid(),
|
||||
height: size.height.fluid(),
|
||||
max_width: f32::INFINITY,
|
||||
max_height: f32::INFINITY,
|
||||
horizontal_alignment: alignment::Horizontal::Left,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue