ui: Fixed positioning of UI

This commit is contained in:
WerWolv 2022-07-06 16:40:30 +02:00
parent 12942a4e71
commit 541f1d5550
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ namespace hex {
ImGui::NewFrame();
ImGuiViewport *viewport = ImGui::GetMainViewport();
ImGui::SetNextWindowPos(ImHexApi::System::getMainWindowPosition() + ImVec2(0, ImGui::GetTextLineHeightWithSpacing()));
ImGui::SetNextWindowPos(ImVec2(0, ImGui::GetTextLineHeightWithSpacing()));
ImGui::SetNextWindowSize(ImHexApi::System::getMainWindowSize() - ImVec2(0, ImGui::GetTextLineHeightWithSpacing()));
ImGui::SetNextWindowViewport(viewport->ID);
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 0.0f);