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
![preview](https://private-user-images.githubusercontent.com/67345449/253121358-a8a63cee-ee8f-4ffb-b0a6-4b0dc2c79613.gif?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjYxMjkyMjcsIm5iZiI6MTcyNjEyODkyNywicGF0aCI6Ii82NzM0NTQ0OS8yNTMxMjEzNTgtYThhNjNjZWUtZWU4Zi00ZmZiLWIwYTYtNGIwZGMyYzc5NjEzLmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MTIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTEyVDA4MTUyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJhNjE3MmUwMjcwZTQ5MjViZTVkMDc2YTU2YjhmNWJmNzJjNjY2NjEzZGJiYzU5Njg0NGZiMWZjZjk1YWUyYjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.kXfPkXvVk27GGBcXkq6DSiA-AMJ3TczMcII-nh1a6rk)
The text was updated successfully, but these errors were encountered: