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-ends: imgui_impl_dx11.cpp + imgui_impl_win32.cpp
Compiler: MSVC
Operating System: Windows 11
My Issue/Question:
Description: When I move the ImGui menu outside the window in my application, the menu loses its rounded corners and appears with straight edges.
style.WindowRounding = 20.0f;
Expected Behavior:
When the ImGui menu is moved outside the application window, the menu should retain its rounded corners, providing a consistent visual appearance regardless of its position.
Additional Information:
I have downloaded the docking branch of Dear ImGui (version 1.89.8 WIP) and integrated it into my application. The rounding of other UI elements, such as windows, is functioning correctly. The issue only occurs specifically with the ImGui menu when moved outside the application window.
Any guidance or suggestions on how to resolve this issue would be greatly appreciated.
Thank you for your attention to this matter.
Screenshots/Video
The text was updated successfully, but these errors were encountered:
That's not a bug, just an unfortunate limitation of secondary viewports. It is (currently) impossible to have them rounded as well. Might be best to not use rounding if you use viewports and want to have a consistent look.
ocornut
changed the title
Loss of Rounded Corners in ImGui Menu when Moved Outside Window
Loss of Rounded Corners in ImGui Menu when Moved Outside Main Viewport
Jul 13, 2023
Your are capturing from the DirectX11 example showing you modified the value of style.WindowRounding.
There's code and a comment in every example's main that sets back WindowRounding to 0.0f for this reason.
Version/Branch of Dear ImGui:
Version: 1.89.8 WIP
Branch: docking
Back-end/Renderer/Compiler/OS
Back-ends: imgui_impl_dx11.cpp + imgui_impl_win32.cpp
Compiler: MSVC
Operating System: Windows 11
My Issue/Question:
Description: When I move the ImGui menu outside the window in my application, the menu loses its rounded corners and appears with straight edges.
style.WindowRounding = 20.0f;
Expected Behavior:
When the ImGui menu is moved outside the application window, the menu should retain its rounded corners, providing a consistent visual appearance regardless of its position.
Additional Information:
I have downloaded the docking branch of Dear ImGui (version 1.89.8 WIP) and integrated it into my application. The rounding of other UI elements, such as windows, is functioning correctly. The issue only occurs specifically with the ImGui menu when moved outside the application window.
Any guidance or suggestions on how to resolve this issue would be greatly appreciated.
Thank you for your attention to this matter.
Screenshots/Video
The text was updated successfully, but these errors were encountered: