Browse Source

Frame: do not draw hidden widgets

master
Noah Petherbridge 7 months ago
parent
commit
b7190fe958
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      frame.go

+ 4
- 1
frame.go View File

@@ -99,7 +99,10 @@ func (w *Frame) Present(e render.Engine, P render.Point) {

// Draw the widgets.
for _, child := range w.widgets {
// child.Compute(e)
if child.Hidden() {
continue
}

p := child.Point()
moveTo := render.NewPoint(
P.X+p.X+w.BoxThickness(1),


Loading…
Cancel
Save