+bool wxGenericScrolledWindow::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;
+ }
+
+ // fall back to default for LayoutConstraints
+ return wxPanel::Layout();
+}
+