two windows drag at a time
This commit is contained in:
parent
f1eefc9a06
commit
d75bfa639c
10
size.go
10
size.go
|
@ -192,6 +192,11 @@ func (tk *guiWidget) setFullSize() bool {
|
||||||
tk.full.w0 = r.w0
|
tk.full.w0 = r.w0
|
||||||
changed = true
|
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 {
|
if tk.full.w1 != r.w1 {
|
||||||
tk.full.w1 = r.w1
|
tk.full.w1 = r.w1
|
||||||
changed = true
|
changed = true
|
||||||
|
@ -200,6 +205,11 @@ func (tk *guiWidget) setFullSize() bool {
|
||||||
tk.full.h0 = r.h0
|
tk.full.h0 = r.h0
|
||||||
changed = true
|
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 {
|
if tk.full.h1 != r.h1 {
|
||||||
tk.full.h1 = r.h1
|
tk.full.h1 = r.h1
|
||||||
changed = true
|
changed = true
|
||||||
|
|
Loading…
Reference in New Issue