diff --git a/r5dev/gameui/IBrowser.cpp b/r5dev/gameui/IBrowser.cpp index d634a1a0..7078f5b2 100644 --- a/r5dev/gameui/IBrowser.cpp +++ b/r5dev/gameui/IBrowser.cpp @@ -343,7 +343,11 @@ void CBrowser::DrawBrowserPanel(void) } ImGui::SameLine(); - if (ImGui::Button("Private servers", ImVec2(itemWidth, ImGui::GetFrameHeight()))) + + // NOTE: -9 to prevent the last button from clipping/colliding with the + // window drag handle! -9 makes the distance between the handle and the + // last button equal as that of the developer console. + if (ImGui::Button("Private servers", ImVec2(itemWidth - 9, ImGui::GetFrameHeight()))) { ImGui::OpenPopup("Private Server"); }