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:
Robert Roebling
2000-02-24 18:09:48 +00:00
parent a368a8c4a8
commit b0e282b34d
5 changed files with 16 additions and 4 deletions

View File

@@ -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();
}