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
This works when the imgui window is on my main monitor but if I move it to a secondary monitor (to the left so negative x coords), then preview stops displaying due to the narrow test on line 1838 in imgui_widgets.cpp failing. Shouldn't that line read:
if (!window->ClipRect.Overlaps(preview_data->PreviewRect))
instead of
if (!window->ClipRect.Contains(preview_data->PreviewRect))
Changing that fixes the issue. Also this only seems to occur when you put the combo inside of a child window.
The text was updated successfully, but these errors were encountered:
You are correct. I have pushed your fix as a134892 (It's not merged in docking until a few days but I have confirmed it cherry-pick fines on docking, if you need a merge sooner let me know) merfged in docking since I had another fix pushed for something else.
Thank you for reporting and fixing!
PS: To clarify, it's not due to negative coordinates per se, but happened if the preview rectangle was not entirely contained within the parent window current clipping rectangle.
(you may also go to Demo>About Window, and click "Config/Build Information" to obtain a bunch of detailed information that you can paste here)
Version/Branch of Dear ImGui:
Operating System: Windows11
My Issue/Question:
So this is super weird, but using the code below:
This works when the imgui window is on my main monitor but if I move it to a secondary monitor (to the left so negative x coords), then preview stops displaying due to the narrow test on line 1838 in imgui_widgets.cpp failing. Shouldn't that line read:
if (!window->ClipRect.Overlaps(preview_data->PreviewRect))
instead of
if (!window->ClipRect.Contains(preview_data->PreviewRect))
Changing that fixes the issue. Also this only seems to occur when you put the combo inside of a child window.
The text was updated successfully, but these errors were encountered: