From 95c1f2a01a69e85aa922c8072d4a8f1e687ccaf9 Mon Sep 17 00:00:00 2001 From: Jonathan Johnson Date: Fri, 10 Nov 2023 15:46:38 -0800 Subject: [PATCH] Fixing DimensionRange for ..= --- src/styles.rs | 2 +- src/widgets/stack.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/styles.rs b/src/styles.rs index 346a0db..1151866 100644 --- a/src/styles.rs +++ b/src/styles.rs @@ -458,7 +458,7 @@ where fn from(value: RangeInclusive) -> Self { Self { start: Bound::Included(value.start().clone().into()), - end: Bound::Excluded(value.end().clone().into()), + end: Bound::Included(value.end().clone().into()), } } } diff --git a/src/widgets/stack.rs b/src/widgets/stack.rs index e3a9e84..ba39154 100644 --- a/src/widgets/stack.rs +++ b/src/widgets/stack.rs @@ -445,10 +445,10 @@ impl Layout { offset += self.layouts[index].size; let (_, measured) = self.orientation.split_size(measure( index, - dbg!(self.orientation.make_size( + self.orientation.make_size( ConstraintLimit::Known(self.layouts[index].size.into_px(scale).into_unsigned()), other_constraint, - )), + ), true, )); self.other = self.other.max(measured);