Adjust the bounding box of the labels to client coordinants

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31506 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2005-01-19 22:06:13 +00:00
parent a962d4e057
commit b5c4505960

View File

@@ -346,7 +346,11 @@ wxRect wxSlider95::GetBoundingBox() const
wxRect rect(x, y, w, h);
if ( m_labels )
rect.Union(m_labels->GetBoundingBox());
{
wxRect lrect = m_labels->GetBoundingBox();
GetParent()->ScreenToClient(&lrect.x, &lrect.y);
rect.Union(lrect);
}
return rect;
}