Fixed label editor position for child properties
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63686 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -3580,6 +3580,8 @@ wxRect wxPropertyGrid::GetEditorWidgetRect( wxPGProperty* p, int column ) const
|
|||||||
GetViewStart(&vx, &vy);
|
GetViewStart(&vx, &vy);
|
||||||
vy *= wxPG_PIXELS_PER_UNIT;
|
vy *= wxPG_PIXELS_PER_UNIT;
|
||||||
|
|
||||||
|
if ( column == 1 )
|
||||||
|
{
|
||||||
// TODO: If custom image detection changes from current, change this.
|
// TODO: If custom image detection changes from current, change this.
|
||||||
if ( m_iFlags & wxPG_FL_CUR_USES_CUSTOM_IMAGE )
|
if ( m_iFlags & wxPG_FL_CUR_USES_CUSTOM_IMAGE )
|
||||||
{
|
{
|
||||||
@@ -3589,6 +3591,11 @@ wxRect wxPropertyGrid::GetEditorWidgetRect( wxPGProperty* p, int column ) const
|
|||||||
iw = wxPG_CUSTOM_IMAGE_WIDTH;
|
iw = wxPG_CUSTOM_IMAGE_WIDTH;
|
||||||
imageOffset = p->GetImageOffset(iw);
|
imageOffset = p->GetImageOffset(iw);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else if ( column == 0 )
|
||||||
|
{
|
||||||
|
splitterX += (p->m_depth - 1) * m_subgroup_extramargin;
|
||||||
|
}
|
||||||
|
|
||||||
return wxRect
|
return wxRect
|
||||||
(
|
(
|
||||||
|
Reference in New Issue
Block a user