From: Robert Roebling Date: Mon, 30 Oct 2006 21:33:03 +0000 (+0000) Subject: Blindly fixed (tried to) wxSlider on Mac after X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/913e3ee729f23665637cf305542b928eae5007f5 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 --- diff --git a/src/mac/carbon/slider.cpp b/src/mac/carbon/slider.cpp index 5d3514db51..287bfe78ab 100644 --- a/src/mac/carbon/slider.cpp +++ b/src/mac/carbon/slider.cpp @@ -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