]> git.saurik.com Git - wxWidgets.git/commitdiff
Optimized sizers to not call CalcMin more often than neccessary
authorRobin Dunn <robin@alldunn.com>
Thu, 24 Jun 2004 20:21:31 +0000 (20:21 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 24 Jun 2004 20:21:31 +0000 (20:21 +0000)
Window items added with wxFIXED_MINSIZE flag will set the window's
minsize to its curent size.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28012 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_sizers.i

index 5476b405c2dc596f766b75fbd11e1eb59e1253f9..6fe840b6ba096768be5f0274c3df8442d8b46dab 100644 (file)
@@ -127,6 +127,11 @@ account.", "");
         wxSize , GetMinSize(),
         "Get the minimum size needed for the item.", "");
     
         wxSize , GetMinSize(),
         "Get the minimum size needed for the item.", "");
     
+    DocDeclStr(
+        wxSize , GetMinSizeWithBorder() const,
+        "Get the minimum size needed for the item with space for the borders
+added, if needed.", "");
+
     DocDeclStr(
         void , SetInitSize( int x, int y ),
         "", "");
     DocDeclStr(
         void , SetInitSize( int x, int y ),
         "", "");