Don't use margins for wxGrid in place text editor controls.

The default non-zero (at least under MSW) margins don't look well inside
wxGrid, don't waste space on them.

See #14958.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73392 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2013-01-20 02:09:05 +00:00
parent 22f1466595
commit f765ac69a0

View File

@ -399,9 +399,11 @@ void wxGridCellTextEditor::DoCreate(wxWindow* parent,
// show it again for a different cell.
style |= wxTE_PROCESS_ENTER | wxTE_PROCESS_TAB | wxNO_BORDER | wxTE_RICH2;
m_control = new wxTextCtrl(parent, id, wxEmptyString,
wxDefaultPosition, wxDefaultSize,
style);
wxTextCtrl* const text = new wxTextCtrl(parent, id, wxEmptyString,
wxDefaultPosition, wxDefaultSize,
style);
text->SetMargins(0, 0);
m_control = text;
#ifdef __WXOSX__
wxWidgetImpl* impl = m_control->GetPeer();