Call wxScrollHelper::AdjustScrollbars() to fix scroll bar setup that broke after wxPropertyGrid was changed to inherit from wxScrollHelper instead of wxScrolledWindow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
35f8d83dbb
commit
769ede722a
@ -4568,6 +4568,11 @@ void wxPropertyGrid::RecalculateVirtualSize( int forceXPos )
|
||||
SetScrollbars( wxPG_PIXELS_PER_UNIT, wxPG_PIXELS_PER_UNIT,
|
||||
xAmount, yAmount, xPos, yPos, true );
|
||||
|
||||
// This may be needed in addition to calling SetScrollbars()
|
||||
// when class inherits from wxScrollHelper instead of
|
||||
// actual wxScrolled<T>.
|
||||
AdjustScrollbars();
|
||||
|
||||
// Must re-get size now
|
||||
GetClientSize(&width,&height);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user