You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_dx11.cpp + imgui_impl_win32.cpp
Operating System: Windows 10
My Issue/Question:
The position of a child window is different on each monitor.
Depedning on which monitor I drag the UI, the result differs. Is there anything I'm doing wrong?
Sorry I have linked #2176 but that goes talking about a different issue.
The actual issue with negative coordinates is #2884. There is a likely trivial fix which is to use ImFloorSigned() instead of ImFloor(), or completely replace the later with the earlier. Doing the 100% fix I worry would need too-careful measurement, but I presume we could do the half fix first which would be to use ImFloorSigned() in a few selected places pertaining to window position, and that would not have measurable impact.
It isn't really a big deal anyway. I just wasn't sure if that is a bug or not.
ocornut
changed the title
Child window position changes depending on the screen it's on
Child window position changes depending on the viewport coordinate sign
Feb 3, 2023
Version/Branch of Dear ImGui:
v1.89.3 docking
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_dx11.cpp + imgui_impl_win32.cpp
Operating System: Windows 10
My Issue/Question:
The position of a child window is different on each monitor.
Depedning on which monitor I drag the UI, the result differs. Is there anything I'm doing wrong?
Main Monitor:
Top Monitor:
Left Monitor:
My code for drawing the UI:
The text was updated successfully, but these errors were encountered: