imgui
imgui copied to clipboard
Setting the Vulkan VkViewport leads to incomplete display of widgets.
Version/Branch of Dear ImGui:
Version 1.90.9
Back-ends:
no backends
Compiler, OS:
ubuntu 20.04 + gcc 9.4.0
Full config/build information:
No response
Details:
I want the width of a button to fill the window. If I use the normal VkViewport, for example, create a glfw window with width=1280, height=720, set VkViewport{x=0,y=0,width=1280,height=720}
, and set io.Displaysize={1280,720}
, it display correctly. But if I want the glfw window has 100 padding on x (set VkViewport{x=100,y=0,width=1080,height=720}
and io.Displaysize={1080,720}
), then the right part of the button is not displayed
Screenshots/Video:
This is the image in which I do not set viewport and button has full width
This is the image I set viewport as I described above and right part of the button is cutted
Minimal, Complete and Verifiable Example code:
https://gist.github.com/swhoro/be2b72efad472558363b6f1debef46a2 This is almost the same as https://github.com/SaschaWillems/Vulkan/blob/master/examples/imgui/main.cpp except line 101, 380, 458, 758 and 761.