X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fdc2232aba8a1d295e68f075ecfeb5cbef30ac38..7f0b95bbe1a91228e1d34a0c3aaa2fd9050a86dd:/src/mac/carbon/slider.cpp diff --git a/src/mac/carbon/slider.cpp b/src/mac/carbon/slider.cpp index 3a268fce3e..fb8d6a322a 100644 --- a/src/mac/carbon/slider.cpp +++ b/src/mac/carbon/slider.cpp @@ -404,6 +404,7 @@ void wxSlider::DoSetSize(int x, int y, int w, int h, int sizeFlags) } else { + w = w - xborder ; if ( m_macMinimumStatic ) m_macMinimumStatic->Move(GetPosition().x + 0, GetPosition().y + sliderBreadth + wxSLIDER_BORDERTEXT); if ( m_macMaximumStatic ) @@ -411,7 +412,6 @@ void wxSlider::DoSetSize(int x, int y, int w, int h, int sizeFlags) GetPosition().y + sliderBreadth + wxSLIDER_BORDERTEXT); if ( m_macValueStatic ) m_macValueStatic->Move(GetPosition().x + w, GetPosition().y + 0); - w = w - xborder ; } } //If the control has labels, we still need to call this again because