summaryrefslogtreecommitdiffstats
path: root/native/src/layout/node.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón <hector0193@gmail.com>2023-02-28 16:03:05 +0100
committerLibravatar GitHub <noreply@github.com>2023-02-28 16:03:05 +0100
commit86b85d1436a44e82a9765f9d82b026faf26e22de (patch)
treea8947e78efcd14435e47f4b2db89d2c58e4471ec /native/src/layout/node.rs
parent5f93437285c4451a8b5ffac1b3c9e1b91e8a5918 (diff)
parent9e815cb749f1bf6bce0232e870be266aca0c0742 (diff)
downloadiced-86b85d1436a44e82a9765f9d82b026faf26e22de.tar.gz
iced-86b85d1436a44e82a9765f9d82b026faf26e22de.tar.bz2
iced-86b85d1436a44e82a9765f9d82b026faf26e22de.zip
Merge pull request #1735 from iced-rs/remove-alignment-fill
Remove `Fill` variant for `Alignment`
Diffstat (limited to 'native/src/layout/node.rs')
-rw-r--r--native/src/layout/node.rs6
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;
- }
}
}