Frame: do not draw hidden widgets
This commit is contained in:
parent
c32601391a
commit
b7190fe958
5
frame.go
5
frame.go
|
@ -99,7 +99,10 @@ func (w *Frame) Present(e render.Engine, P render.Point) {
|
||||||
|
|
||||||
// Draw the widgets.
|
// Draw the widgets.
|
||||||
for _, child := range w.widgets {
|
for _, child := range w.widgets {
|
||||||
// child.Compute(e)
|
if child.Hidden() {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
p := child.Point()
|
p := child.Point()
|
||||||
moveTo := render.NewPoint(
|
moveTo := render.NewPoint(
|
||||||
P.X+p.X+w.BoxThickness(1),
|
P.X+p.X+w.BoxThickness(1),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user