Replies: 1 comment 1 reply
-
I think this code may have something to do here: if w.flags&WindowFlags(imgui.WindowFlagsNoMove) != 0 && w.flags&WindowFlags(imgui.WindowFlagsNoResize) != 0 {
imgui.SetNextWindowPos(imgui.Vec2{X: w.x, Y: w.y})
imgui.SetNextWindowSize(imgui.Vec2{X: w.width, Y: w.height})
} else {
imgui.SetNextWindowPosV(imgui.Vec2{X: w.x, Y: w.y}, imgui.CondFirstUseEver, imgui.Vec2{X: 0, Y: 0})
imgui.SetNextWindowSizeV(imgui.Vec2{X: w.width, Y: w.height}, imgui.CondFirstUseEver)
} (from I expect that adding giu.WindowFlagsNoMove may solve this as the new position of window 2 will be set every frame to the position of window 1 lmk if that worked 😄 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried the code in the example:
https://github.com/AllenDang/giu/blob/master/examples/windows/main.go
I added the code to set the position of w2 after I got the coordinates of w1.
It's not in effect
Beta Was this translation helpful? Give feedback.
All reactions