Minor optical things.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6265 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -483,7 +483,13 @@ void wxGridCellTextEditor::SetSize(const wxRect& rectOrig)
|
||||
// unix
|
||||
//
|
||||
#if defined(__WXGTK__)
|
||||
rect.Inflate(rect.x ? 1 : 0, rect.y ? 1 : 0);
|
||||
if (rect.x != 0)
|
||||
{
|
||||
rect.x += 1;
|
||||
rect.y += 1;
|
||||
rect.width -= 1;
|
||||
rect.height -= 1;
|
||||
}
|
||||
#else // !GTK
|
||||
int extra_x = ( rect.x > 2 )? 2 : 1;
|
||||
int extra_y = ( rect.y > 2 )? 2 : 1;
|
||||
@@ -5455,9 +5461,10 @@ void wxGrid::ShowCellEditControl()
|
||||
new wxGridCellEditorEvtHandler(this, editor));
|
||||
}
|
||||
|
||||
editor->Show( TRUE, attr );
|
||||
|
||||
editor->SetSize( rect );
|
||||
|
||||
editor->Show( TRUE, attr );
|
||||
editor->BeginEdit(row, col, this);
|
||||
attr->DecRef();
|
||||
}
|
||||
|
Reference in New Issue
Block a user