From 74377ecf3813115b2d51efae462017220fc070b1 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 22 Jun 2020 02:18:21 +0200 Subject: [PATCH] Center date editor vertically in the grid Do it for consistency with the other editors and because it looks better when the date picker is taller than the line height. --- src/generic/grideditors.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generic/grideditors.cpp b/src/generic/grideditors.cpp index af1a11cae1..35e64bb03d 100644 --- a/src/generic/grideditors.cpp +++ b/src/generic/grideditors.cpp @@ -1800,7 +1800,7 @@ void wxGridCellDateEditor::SetSize(const wxRect& r) rect.SetWidth(wxMin(r.GetWidth(), 2*bestSize.GetWidth())); } - wxGridCellEditor::SetSize(rect); + wxGridCellEditor::SetSize(rect.CenterIn(r, wxVERTICAL)); } void wxGridCellDateEditor::BeginEdit(int row, int col, wxGrid* grid)