diff options
| author | Jeff Carr <[email protected]> | 2024-01-28 20:15:59 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-01-28 20:15:59 -0600 |
| commit | 3029f04bd2b82eadfe7d5569616c322175a94c64 (patch) | |
| tree | 199ae0b7f98171838439cc8299990e5c91217f18 /view.go | |
| parent | 63b76b29127aae98f5b709611cfcd036484ebefe (diff) | |
trying to compute sizes
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'view.go')
| -rw-r--r-- | view.go | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -48,7 +48,8 @@ func (w *guiWidget) textResize() bool { } func (w *guiWidget) hideView() { - w.SetVisible(false) + // w.SetVisible(false) + w.deleteView() } // display's the text of the widget in gocui @@ -67,7 +68,7 @@ func (w *guiWidget) showView() { w.recreateView() } x0, y0, x1, y1, err := me.baseGui.ViewPosition(w.cuiName) - log.Log(INFO, "showView() w.v already defined for widget", w.String(), err) + log.Log(INFO, "showView() w.v already defined for widget", w.String(), x0, y0, x1, y1, err) // n.smartGocuiSize() changed := w.textResize() @@ -123,10 +124,10 @@ func (w *guiWidget) recreateView() { w.v = nil if w.String() == "CLOUDFLARE_EMAIL" { - w.showWidgetPlacement("n.String()="+w.String()+" n.tk.label="+w.labelN+" "+w.cuiName) + w.showWidgetPlacement("n.String()=" + w.String() + " n.tk.label=" + w.labelN + " " + w.cuiName) // w.dumpWidget("jwc") w.textResize() - w.showWidgetPlacement("n.String()="+w.String()+" n.tk.label="+w.labelN+" "+w.cuiName) + w.showWidgetPlacement("n.String()=" + w.String() + " n.tk.label=" + w.labelN + " " + w.cuiName) } a := w.gocuiSize.w0 @@ -173,7 +174,7 @@ func (w *guiWidget) recreateView() { w.v.SelBgColor = w.color.selBg } if w.String() == "CLOUDFLARE_EMAIL" { - w.showWidgetPlacement("w.String()="+w.String()+" w.label="+w.labelN+" "+w.cuiName) + w.showWidgetPlacement("w.String()=" + w.String() + " w.label=" + w.labelN + " " + w.cuiName) w.dumpTree("cloudflare") } log.Log(ERROR, "recreateView() END") |
