Remove Fill variant for Alignment
Implementing this generically in our `flex` logic has an exponential cost. Let's explore other options!
This commit is contained in:
parent
5f93437285
commit
9e815cb749
6 changed files with 14 additions and 72 deletions
|
|
@ -56,9 +56,6 @@ impl Node {
|
|||
Alignment::End => {
|
||||
self.bounds.x += space.width - self.bounds.width;
|
||||
}
|
||||
Alignment::Fill => {
|
||||
self.bounds.width = space.width;
|
||||
}
|
||||
}
|
||||
|
||||
match vertical_alignment {
|
||||
|
|
@ -69,9 +66,6 @@ impl Node {
|
|||
Alignment::End => {
|
||||
self.bounds.y += space.height - self.bounds.height;
|
||||
}
|
||||
Alignment::Fill => {
|
||||
self.bounds.height = space.height;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue