Fixed incorrect bounds being returned by Overflow control.
This commit is contained in:
parent
28af8aba06
commit
8f17c02634
@ -86,6 +86,8 @@ func (o *overflow) Arrange(ctx Context, bounds geom.RectangleF32, offset geom.Po
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (o *overflow) Bounds() geom.RectangleF32 { return o.bounds }
|
||||||
|
|
||||||
func (o *overflow) DesiredSize(ctx Context) geom.PointF32 {
|
func (o *overflow) DesiredSize(ctx Context) geom.PointF32 {
|
||||||
return geom.PtF32(geom.NaN32(), geom.NaN32())
|
return geom.PtF32(geom.NaN32(), geom.NaN32())
|
||||||
}
|
}
|
||||||
@ -119,7 +121,7 @@ func (o *overflow) Render(ctx Context) {
|
|||||||
var renderer = ctx.Renderer()
|
var renderer = ctx.Renderer()
|
||||||
|
|
||||||
if o.Background != nil {
|
if o.Background != nil {
|
||||||
ctx.Renderer().FillRectangle(o.bounds, o.Background)
|
renderer.FillRectangle(o.bounds, o.Background)
|
||||||
}
|
}
|
||||||
|
|
||||||
var content = o.Content.Bounds()
|
var content = o.Content.Bounds()
|
||||||
|
Loading…
Reference in New Issue
Block a user