Compare commits
1 Commits
eb46741165
...
365a74a2d9
Author | SHA1 | Date | |
---|---|---|---|
365a74a2d9 |
@ -63,9 +63,9 @@ func (p *StackPanel) preArrange(ctx Context, bounds geom.RectangleF32, clip bool
|
|||||||
func (p *StackPanel) Arrange(ctx Context, bounds geom.RectangleF32, offset geom.PointF32, parent Control) {
|
func (p *StackPanel) Arrange(ctx Context, bounds geom.RectangleF32, offset geom.PointF32, parent Control) {
|
||||||
childBounds := p.preArrange(ctx, bounds, true)
|
childBounds := p.preArrange(ctx, bounds, true)
|
||||||
for i := range p.Children {
|
for i := range p.Children {
|
||||||
p.Children[i].Arrange(ctx, childBounds[i], offset, p)
|
p.Children[i].Arrange(ctx, p.Orientation.FlipRect(childBounds[i]), offset, p)
|
||||||
}
|
}
|
||||||
p.ControlBase.Arrange(ctx, bounds, offset, parent)
|
p.ControlBase.Arrange(ctx, p.Orientation.FlipRect(bounds), offset, parent)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *StackPanel) BoundsUnclipped(ctx Context, path ControlPath) geom.RectangleF32 {
|
func (p *StackPanel) BoundsUnclipped(ctx Context, path ControlPath) geom.RectangleF32 {
|
||||||
|
Loading…
Reference in New Issue
Block a user