diff options
| author | Jeff Carr <[email protected]> | 2024-01-28 14:03:06 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-28 14:03:06 -0600 |
| commit | 2e2e68ce070a987304d3f8e4bae832b2672f7875 (patch) | |
| tree | b71d31180ee1bf1591311ace4e6d9cff1c467454 /click.go | |
| parent | dab898f0f945fc3b0a5747f38b7f22b59d539117 (diff) | |
trying to fix windows
Signed-off-by: Jeff Carr <[email protected]>
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) |
