fix: Window footer being way too narrow

This commit is contained in:
WerWolv 2024-02-03 22:43:06 +01:00
parent fe3facfc95
commit 64d147bf96
1 changed files with 1 additions and 1 deletions

View File

@ -383,7 +383,7 @@ namespace hex::plugin::builtin {
const auto sidebarPos = ImGui::GetCursorPos(); const auto sidebarPos = ImGui::GetCursorPos();
const auto sidebarWidth = shouldDrawSidebar ? 20_scaled : 0; const auto sidebarWidth = shouldDrawSidebar ? 20_scaled : 0;
const auto footerHeight = ImGui::GetTextLineHeightWithSpacing() + ImGui::GetStyle().FramePadding.y * 2 + 1_scaled; const auto footerHeight = ImGui::GetTextLineHeightWithSpacing() + ImGui::GetStyle().WindowPadding.y * 2 + 1_scaled;
const auto dockSpaceSize = ImVec2(ImHexApi::System::getMainWindowSize().x - sidebarWidth, ImGui::GetContentRegionAvail().y - footerHeight); const auto dockSpaceSize = ImVec2(ImHexApi::System::getMainWindowSize().x - sidebarWidth, ImGui::GetContentRegionAvail().y - footerHeight);
ImGui::SetCursorPosX(sidebarWidth); ImGui::SetCursorPosX(sidebarWidth);