Fix remote window height size error

This commit is contained in:
dijunkun
2024-07-01 11:24:58 +08:00
parent eed93ea953
commit 7f25f7426c

View File

@@ -8,9 +8,9 @@ int Render::RemoteWindow() {
ImGui::SetNextWindowPos(ImVec2(local_window_width_ - 1, menu_window_height_),
ImGuiCond_Always);
ImGui::PushStyleColor(ImGuiCol_ChildBg, ImVec4(255, 255, 255, 1));
ImGui::BeginChild(
"RemoteDesktopWindow",
ImVec2(main_window_width_ - local_window_width_, main_window_height_),
ImGui::BeginChild("RemoteDesktopWindow",
ImVec2(main_window_width_ - local_window_width_,
main_window_height_ - menu_window_height_),
ImGuiChildFlags_Border,
ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoCollapse |
ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoTitleBar);