StudioCherno / Walnut

Walnut is a simple application framework for Vulkan and Dear ImGui apps
MIT License
1.99k stars 367 forks source link

Changing Menubar height cuts off the menubar & menus only clickable for 50% of half the y-size #51

Open Zvendson opened 1 year ago

Zvendson commented 1 year ago

tricky title buuut: an issue without modifying the code is that all menubar entries like "File" and "Help" dont react on left clicking when you are at the lower half of the field.

I also tried shifting hte menubar entries on the Y axis down to be actually below the window title, cause I want mine to be beneath the title. You can test that in this line: https://github.com/StudioCherno/Walnut/blob/7e478a3828059eafabc31cb0559a31d1d83dad12/Walnut/Platform/GUI/Walnut/ApplicationGUI.cpp#L734C45-L734C45

just change it to:

ImGui::SetCursorPos(ImVec2(logoHorizontalOffset, 20.0f + titlebarVerticalOffset));