Take subgroup margin into account when checking for property label cropping
This commit is contained in:
committed by
Artur Wieczorek
parent
075d964eae
commit
e4607a243e
@@ -5099,6 +5099,8 @@ bool wxPropertyGrid::HandleMouseMove( int x, unsigned int y,
|
|||||||
{
|
{
|
||||||
tipString = m_propHover->GetLabel();
|
tipString = m_propHover->GetLabel();
|
||||||
space = m_pState->GetColumnWidth(0)-3;
|
space = m_pState->GetColumnWidth(0)-3;
|
||||||
|
if ( !(m_windowStyle & wxPG_HIDE_CATEGORIES) || m_propHover->GetParent() != m_pState->DoGetRoot() )
|
||||||
|
space -= (m_propHover->GetDepth()-1)*m_subgroup_extramargin;
|
||||||
}
|
}
|
||||||
else if ( m_mouseSide == 2 )
|
else if ( m_mouseSide == 2 )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user