]> git.saurik.com Git - wxWidgets.git/commitdiff
correctly positioning vertical slider labels
authorStefan Csomor <csomor@advancedconcepts.ch>
Sat, 26 Jun 2004 09:31:55 +0000 (09:31 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sat, 26 Jun 2004 09:31:55 +0000 (09:31 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28027 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/slider.cpp

index e90a51039808d2b70801565001e26df8df8d8a56..dc0508f4ea888a1a25907c7ad71f0bf95a038298 100644 (file)
@@ -396,11 +396,11 @@ void wxSlider::DoSetSize(int x, int y, int w, int h, int sizeFlags)
                         
             if ( m_macMinimumStatic )
                 m_macMinimumStatic->Move(GetPosition().x + sliderBreadth + wxSLIDER_BORDERTEXT,
                         
             if ( m_macMinimumStatic )
                 m_macMinimumStatic->Move(GetPosition().x + sliderBreadth + wxSLIDER_BORDERTEXT,
-                GetPosition().y + h - yborder - textheight);
+                GetPosition().y + h - yborder);
             if ( m_macMaximumStatic )
                 m_macMaximumStatic->Move(GetPosition().x + sliderBreadth + wxSLIDER_BORDERTEXT, GetPosition().y + 0);
             if ( m_macValueStatic )
             if ( m_macMaximumStatic )
                 m_macMaximumStatic->Move(GetPosition().x + sliderBreadth + wxSLIDER_BORDERTEXT, GetPosition().y + 0);
             if ( m_macValueStatic )
-                m_macValueStatic->Move(GetPosition().x, GetPosition().y + h - textheight);
+                m_macValueStatic->Move(GetPosition().x, GetPosition().y + h );
         }
         else
         {
         }
         else
         {