+
+bool wxScrolledWindow::Layout()
+{
+ if (GetSizer())
+ {
+ // Take into account the virtual size and scrolled position of the window
+ int x, y, w, h;
+ CalcScrolledPosition(0,0, &x,&y);
+ GetVirtualSize(&w, &h);
+ GetSizer()->SetDimension(x, y, w, h);
+ return TRUE;
+ }
+ else
+ return wxPanel::Layout(); // fall back to default for LayoutConstraints
+}
+