Improve wxGridCellNumberEditor placement in the grid

Use the best height and don't let the editor be smaller then min size.
Also align center vertically.
This commit is contained in:
Ilya Sinitsyn
2019-10-03 00:42:43 +07:00
committed by Vadim Zeitlin
parent 1be43ed67b
commit 8dadc2e68c
2 changed files with 44 additions and 0 deletions

View File

@@ -116,6 +116,8 @@ public:
wxWindowID id,
wxEvtHandler* evtHandler) wxOVERRIDE;
virtual void SetSize(const wxRect& rect) wxOVERRIDE;
virtual bool IsAcceptedKey(wxKeyEvent& event) wxOVERRIDE;
virtual void BeginEdit(int row, int col, wxGrid* grid) wxOVERRIDE;
virtual bool EndEdit(int row, int col, const wxGrid* grid,