Blindly fixed (tried to) wxSlider on Mac after

SetSizeHints() change.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling 2006-10-30 21:33:03 +00:00
parent 34424e1e7f
commit 913e3ee729

View File

@ -345,9 +345,15 @@ void wxSlider::DoSetSizeHints( int minW, int minH,
wxSize size = GetBestSize();
if (GetWindowStyle() & wxSL_VERTICAL)
wxWindow::DoSetSizeHints(size.x, minH, size.x, maxH, incW, incH);
{
SetMinSize( wxSize(size.x,minH) );
SetMaxSize( wxSize(size.x,maxH) );
}
else
wxWindow::DoSetSizeHints(minW, size.y, maxW, size.y, incW, incH);
{
SetMinSize( wxSize(minW,size.y) );
SetMaxSize( wxSize(maxW,size.y) );
}
}
wxSize wxSlider::DoGetBestSize() const