]> git.saurik.com Git - wxWidgets.git/commitdiff
use GetBestSize() and not GetSize() for AsIs() size constraints -- this makes much...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Oct 2004 14:49:38 +0000 (14:49 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Oct 2004 14:49:38 +0000 (14:49 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/changes.txt
src/common/layout.cpp

index 203e80717f6632ccf27c50c98db56b4310dacb14..787f7f6fe315760b52ad6d0346fa2b2f838b7540 100644 (file)
@@ -211,6 +211,7 @@ All:
 All (GUI):
 
 - recursive wxSizer::GetItem returns item of given window, sizer or nth index
+- wxLayoutConstraints now use best size, not current size, for AsIs() condition
 
 Unix:
 
index 85dcafbb11fc0d6f0daf20380f478bfb805d0620..c542527219fe1a47c5d6cda59be06d2ed8f9af3b 100644 (file)
@@ -300,7 +300,7 @@ bool wxIndividualLayoutConstraint::SatisfyConstraint(wxLayoutConstraints *constr
                 {
                     int x, y;
                     int w, h;
-                    win->GetSize(&w, &h);
+                    win->GetBestSize(&w, &h);
                     win->GetPosition(&x, &y);
                     value = x + w;
                     done = true;
@@ -453,7 +453,7 @@ bool wxIndividualLayoutConstraint::SatisfyConstraint(wxLayoutConstraints *constr
                 {
                     int x, y;
                     int w, h;
-                    win->GetSize(&w, &h);
+                    win->GetBestSize(&w, &h);
                     win->GetPosition(&x, &y);
                     value = h + y;
                     done = true;
@@ -621,7 +621,7 @@ bool wxIndividualLayoutConstraint::SatisfyConstraint(wxLayoutConstraints *constr
                     if (win)
                     {
                         int h;
-                        win->GetSize(&value, &h);
+                        win->GetBestSize(&value, &h);
                         done = true;
                         return true;
                     }
@@ -679,7 +679,7 @@ bool wxIndividualLayoutConstraint::SatisfyConstraint(wxLayoutConstraints *constr
                     if (win)
                     {
                         int w;
-                        win->GetSize(&w, &value);
+                        win->GetBestSize(&w, &value);
                         done = true;
                         return true;
                     }