diff options
| author | Jeff Carr <[email protected]> | 2025-02-08 14:43:38 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-08 14:43:38 -0600 |
| commit | ea544e429e1afbb60e91d2cba6caf85d8e08cc64 (patch) | |
| tree | 8ee20262538ca3b7c0497bfd4d5bca6b4021487f /dropdown.go | |
| parent | 58cb7f3d2d8cd102081ba545081f20bf0d6fd211 (diff) | |
setting the size of the textbox correctly
Diffstat (limited to 'dropdown.go')
| -rw-r--r-- | dropdown.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dropdown.go b/dropdown.go index ee56331..899e947 100644 --- a/dropdown.go +++ b/dropdown.go @@ -144,6 +144,11 @@ func (tk *guiWidget) showTextbox() { me.textbox.tk.Show() me.textbox.active = true me.textbox.callerTK = tk + r := me.textbox.tk.gocuiSize + me.textbox.tk.full.w0 = r.w0 + me.textbox.tk.full.w1 = r.w1 + me.textbox.tk.full.h0 = r.h0 + me.textbox.tk.full.h1 = r.h1 me.textbox.tk.dumpWidget("showTextbox()") } |
