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);