summaryrefslogtreecommitdiff
path: root/size.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-02-05 16:30:06 -0600
committerJeff Carr <[email protected]>2025-02-05 16:30:06 -0600
commitefebe00640b7b44821c37fd2c9479c579bebc392 (patch)
treec5bcf67022d282ede1d2ab890aada1065a3cfa4f /size.go
parent07f6b7842e9ee6c933be365ab24839aec5c07298 (diff)
window dragging works fairly well
Diffstat (limited to 'size.go')
-rw-r--r--size.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/size.go b/size.go
index 30aab68..5b9ff1f 100644
--- a/size.go
+++ b/size.go
@@ -194,6 +194,7 @@ func (tk *guiWidget) setFullSize() bool {
}
// widget might be forced to a certain location
if tk.full.w0 < tk.force.w0 {
+ tk.gocuiSize.w0 = tk.force.w0
tk.full.w0 = tk.force.w0
changed = false
}
@@ -207,6 +208,7 @@ func (tk *guiWidget) setFullSize() bool {
}
// widget might be forced to a certain location
if tk.full.h0 < tk.force.h0 {
+ tk.gocuiSize.h0 = tk.force.h0
tk.full.h0 = tk.force.h0
changed = false
}