diff options
author | 2023-02-27 16:49:25 +0100 | |
---|---|---|
committer | 2023-02-27 16:54:28 +0100 | |
commit | 9e815cb749f1bf6bce0232e870be266aca0c0742 (patch) | |
tree | a8947e78efcd14435e47f4b2db89d2c58e4471ec /native/src/layout/node.rs | |
parent | 5f93437285c4451a8b5ffac1b3c9e1b91e8a5918 (diff) | |
download | iced-9e815cb749f1bf6bce0232e870be266aca0c0742.tar.gz iced-9e815cb749f1bf6bce0232e870be266aca0c0742.tar.bz2 iced-9e815cb749f1bf6bce0232e870be266aca0c0742.zip |
Remove `Fill` variant for `Alignment`
Implementing this generically in our `flex` logic has an exponential
cost. Let's explore other options!
Diffstat (limited to '')
-rw-r--r-- | native/src/layout/node.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/native/src/layout/node.rs b/native/src/layout/node.rs index e0c7dcb2..2b44a7d5 100644 --- a/native/src/layout/node.rs +++ b/native/src/layout/node.rs @@ -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; - } } } |