alignment!!!
This commit is contained in:
1 parent
46c7d8ba26
commit
1204e3728e
11 files changed
+190
-86
No files matched your search
+1
-3
@@ -33,9 +33,7 @@ impl Widget for Span {
|
||||
let offset = size.axis(self.dir.axis);
|
||||
start.offset += offset;
|
||||
*axis.bot_right.offset = start.offset;
|
||||
child_region.bot_right.anchor = child_region.top_left.anchor;
|
||||
let opposite = !self.dir.axis;
|
||||
*child_region.bot_right.offset.axis_mut(opposite) += size.axis(opposite);
|
||||
*axis.bot_right.anchor = *axis.top_left.anchor;
|
||||
}
|
||||
}
|
||||
if self.dir.sign == Sign::Neg {
|
||||
|
||||
Reference in new issue
Block a user