two windows drag at a time

This commit is contained in:
Jeff Carr 2025-02-05 12:51:00 -06:00
parent f1eefc9a06
commit d75bfa639c
1 changed files with 10 additions and 0 deletions

10
size.go
View File

@ -192,6 +192,11 @@ func (tk *guiWidget) setFullSize() bool {
tk.full.w0 = r.w0
changed = true
}
// widget might be forced to a certain location
if tk.full.w0 < tk.force.w0 {
tk.full.w0 = tk.force.w0
changed = false
}
if tk.full.w1 != r.w1 {
tk.full.w1 = r.w1
changed = true
@ -200,6 +205,11 @@ func (tk *guiWidget) setFullSize() bool {
tk.full.h0 = r.h0
changed = true
}
// widget might be forced to a certain location
if tk.full.h0 < tk.force.h0 {
tk.full.h0 = tk.force.h0
changed = false
}
if tk.full.h1 != r.h1 {
tk.full.h1 = r.h1
changed = true