summaryrefslogtreecommitdiffstats
path: root/native/src/layout/node.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--native/src/layout/node.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/native/src/layout/node.rs b/native/src/layout/node.rs
index d7666f31..bee5e64e 100644
--- a/native/src/layout/node.rs
+++ b/native/src/layout/node.rs
@@ -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;
+ }
}
}