mirror of
https://github.com/danbulant/cushy
synced 2026-07-08 04:30:34 +00:00
Fixing DimensionRange for ..=
This commit is contained in:
parent
60e85c78d0
commit
95c1f2a01a
2 changed files with 3 additions and 3 deletions
|
|
@ -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()),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue