[fix] fix height when server window is restored from collapsed state

This commit is contained in:
dijunkun
2026-01-20 23:58:43 +08:00
parent 619e54dc0e
commit ee08b231db
2 changed files with 8 additions and 0 deletions

View File

@@ -18,6 +18,8 @@ int Render::ServerWindow() {
ImGuiWindowFlags_NoScrollbar |
ImGuiWindowFlags_NoScrollWithMouse);
server_window_title_bar_height_ = title_bar_height_;
ImGui::PushStyleColor(ImGuiCol_ChildBg, ImVec4(1.0f, 1.0f, 1.0f, 1.0f));
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2(0, 0));
ImGui::SetNextWindowPos(ImVec2(0, 0), ImGuiCond_Always);