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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user