]> git.saurik.com Git - wxWidgets.git/commitdiff
Blindly fixed (tried to) wxSlider on Mac after
authorRobert Roebling <robert@roebling.de>
Mon, 30 Oct 2006 21:33:03 +0000 (21:33 +0000)
committerRobert Roebling <robert@roebling.de>
Mon, 30 Oct 2006 21:33:03 +0000 (21:33 +0000)
    SetSizeHints() change.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42769 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/slider.cpp

index 5d3514db5100594b1a0e5da5d304093a7cfbee62..287bfe78abf4348a0e65cb878bdd826a34e0abd7 100644 (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