Frame: do not draw hidden widgets

master
Noah 2021-01-03 17:05:04 -08:00
父节点 c32601391a
当前提交 b7190fe958
共有 1 个文件被更改,包括 4 次插入1 次删除

查看文件

@ -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),