diff options
Diffstat (limited to 'click.go')
| -rw-r--r-- | click.go | 17 |
1 files changed, 12 insertions, 5 deletions
@@ -119,8 +119,10 @@ func (w *guiWidget) doWidgetClick() { w.setColor(&colorActiveW) if w.active { w.active = false - w.placeWidgets(me.RawW, me.RawH) + w.dumpTree("before") + w.placeWidgets(3, 2) w.showWidgets() + w.dumpTree("after") } else { w.active = true w.hideWidgets() @@ -165,22 +167,27 @@ func (w *guiWidget) doWidgetClick() { w.showWidgets() case widget.Group: // n.placeWidgets(p.tk.startH, newH) + w.dumpTree("click start") if w.active { w.active = false - startW := me.RawW - startH := me.RawH + startW := w.parent.AtW + startH := w.parent.AtH + w.placeWidgets(startW, startH) + w.showWidgets() + /* for _, child := range w.children { log.Log(INFO, "START W,H", startW, startH) - child.placeWidgets(me.RawW, me.RawH) + child.placeWidgets(startW, startH) child.showWidgets() } + */ } else { w.active = true for _, child := range w.children { child.hideWidgets() } } - w.dumpTree() + w.dumpTree("click end") case widget.Checkbox: if widget.GetBool(w.value) { w.setCheckbox(false) |
