Parcourir la source

No minimum size for popups

ocornut il y a 10 ans
Parent
commit
70f2ff0e5a
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      imgui.cpp

+ 1 - 1
imgui.cpp

@@ -3574,7 +3574,7 @@ bool ImGui::Begin(const char* name, bool* p_opened, const ImVec2& size_on_first_
         }
 
         // Minimum window size
-        if (!(flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_ChildMenu | ImGuiWindowFlags_Tooltip)))
+        if (!(flags & (ImGuiWindowFlags_ChildWindow | ImGuiWindowFlags_Popup | ImGuiWindowFlags_ChildMenu | ImGuiWindowFlags_Tooltip)))
         {
             window->SizeFull = ImMax(window->SizeFull, style.WindowMinSize);
             if (!window->Collapsed)