X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1b941f2d3143c1205fc7c5b01bd254781db728b3..dbbd41ae33856d6c9dfe6c2bf19151b1ac0a18eb:/src/common/layout.cpp diff --git a/src/common/layout.cpp b/src/common/layout.cpp index 85dcafbb11..c542527219 100644 --- a/src/common/layout.cpp +++ b/src/common/layout.cpp @@ -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; }