summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-01-05 17:54:10 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-01-10 10:01:49 +0100
commit4bdd8a62791cfa4864d3d4cf1d5b19c6f227d537 (patch)
treedd681ac996fdb574c7216808ccc63c5c70cd8e6b
parentd278bfd21d0399009e652560afb9a4d185e92637 (diff)
downloadiced-4bdd8a62791cfa4864d3d4cf1d5b19c6f227d537.tar.gz
iced-4bdd8a62791cfa4864d3d4cf1d5b19c6f227d537.tar.bz2
iced-4bdd8a62791cfa4864d3d4cf1d5b19c6f227d537.zip
Fix `cross` axis calculation in `flex` layout
-rw-r--r--core/src/layout/flex.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/layout/flex.rs b/core/src/layout/flex.rs
index 036b31fd..2a12d57f 100644
--- a/core/src/layout/flex.rs
+++ b/core/src/layout/flex.rs
@@ -142,6 +142,7 @@ where
let size = layout.size();
available -= axis.main(size);
+ cross = cross.max(axis.cross(layout.size()));
nodes[i] = layout;
}