diff options
| author | Jeff Carr <[email protected]> | 2025-02-06 20:34:29 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-06 20:34:29 -0600 |
| commit | 5d1a3b2578580bd2d41e47d3ab3e6f48411c8613 (patch) | |
| tree | 2070fbb66ed44f04c41e7ddc09617009df347274 /window.go | |
| parent | e39bcafb78d8388ee5bc77366efbab4f3717466c (diff) | |
finally. dense window view
Diffstat (limited to 'window.go')
| -rw-r--r-- | window.go | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -15,6 +15,9 @@ func (tk *guiWidget) redrawWindow(w int, h int) { if tk.node.WidgetType != widget.Window { return } + if tk.full.Height() > 40 { + tk.window.dense = true + } // pin the window to (w,h) tk.gocuiSize.w0 = w tk.gocuiSize.h0 = h |
