Add Align::Fill variant
This commit is contained in:
parent
456a3f15e4
commit
be51cac3d7
4 changed files with 59 additions and 13 deletions
|
|
@ -56,6 +56,9 @@ impl Node {
|
|||
Align::End => {
|
||||
self.bounds.x += space.width - self.bounds.width;
|
||||
}
|
||||
Align::Fill => {
|
||||
self.bounds.width = space.width;
|
||||
}
|
||||
}
|
||||
|
||||
match vertical_alignment {
|
||||
|
|
@ -66,6 +69,9 @@ impl Node {
|
|||
Align::End => {
|
||||
self.bounds.y += space.height - self.bounds.height;
|
||||
}
|
||||
Align::Fill => {
|
||||
self.bounds.height = space.height;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue