Fixing DimensionRange for ..=

This commit is contained in:
Jonathan Johnson 2023-11-10 15:46:38 -08:00
parent 60e85c78d0
commit 95c1f2a01a
No known key found for this signature in database
GPG key ID: A66D6A34D6620579
2 changed files with 3 additions and 3 deletions

View file

@ -458,7 +458,7 @@ where
fn from(value: RangeInclusive<T>) -> Self { fn from(value: RangeInclusive<T>) -> Self {
Self { Self {
start: Bound::Included(value.start().clone().into()), start: Bound::Included(value.start().clone().into()),
end: Bound::Excluded(value.end().clone().into()), end: Bound::Included(value.end().clone().into()),
} }
} }
} }

View file

@ -445,10 +445,10 @@ impl Layout {
offset += self.layouts[index].size; offset += self.layouts[index].size;
let (_, measured) = self.orientation.split_size(measure( let (_, measured) = self.orientation.split_size(measure(
index, index,
dbg!(self.orientation.make_size( self.orientation.make_size(
ConstraintLimit::Known(self.layouts[index].size.into_px(scale).into_unsigned()), ConstraintLimit::Known(self.layouts[index].size.into_px(scale).into_unsigned()),
other_constraint, other_constraint,
)), ),
true, true,
)); ));
self.other = self.other.max(measured); self.other = self.other.max(measured);