FullscreenUI: Fix settings menu offscreen with debug menu

This commit is contained in:
Connor McLaughlin 2021-07-03 16:50:35 +10:00
parent 24306be757
commit 4ddab3609d

View file

@ -1347,8 +1347,10 @@ void DrawSettingsWindow()
EndFullscreenWindow();
if (BeginFullscreenWindow(ImVec2(0.0f, ImGuiFullscreen::g_menu_bar_size + heading_size.y),
ImVec2(io.DisplaySize.x, io.DisplaySize.y - heading_size.y), "settings_parent"))
if (BeginFullscreenWindow(
ImVec2(0.0f, ImGuiFullscreen::g_menu_bar_size + heading_size.y),
ImVec2(io.DisplaySize.x, io.DisplaySize.y - heading_size.y - ImGuiFullscreen::g_menu_bar_size),
"settings_parent"))
{
if (ImGui::IsNavInputTest(ImGuiNavInput_Cancel, ImGuiInputReadMode_Pressed))
{