wxScrollHelper *m_scrollHelper;
bool m_hasDrawnWindow;
+
+ DECLARE_NO_COPY_CLASS(wxScrollHelperEvtHandler)
};
// ----------------------------------------------------------------------------
wxEventType m_eventType;
int m_pos,
m_orient;
+
+ DECLARE_NO_COPY_CLASS(wxAutoScrollTimer)
};
// ============================================================================
// here not just the size. It makes SetScrollbars 'sticky'
// emulating the old non-autoscroll behaviour.
- m_targetWindow->SetVirtualSizeHints( noUnitsX * pixelsPerUnitX, noUnitsY * pixelsPerUnitY );
+ wxSize sz = m_targetWindow->GetClientSize();
+#if 1
+ int x = wxMax(noUnitsX * pixelsPerUnitX, sz.x);
+ int y = wxMax(noUnitsY * pixelsPerUnitY, sz.y);
+#else
+ int x = noUnitsX * pixelsPerUnitX;
+ int y = noUnitsY * pixelsPerUnitY;
+#endif
+ m_targetWindow->SetVirtualSizeHints( x, y );
// The above should arguably be deprecated, this however we still need.
- m_targetWindow->SetVirtualSize( noUnitsX * pixelsPerUnitX, noUnitsY * pixelsPerUnitY );
+ m_targetWindow->SetVirtualSize( x, y );
if (do_refresh && !noRefresh)
m_targetWindow->Refresh(TRUE, GetRect());