Shift the text control another pixel down in MSW wxSearchCtrl

It was too high otherwise, which was especially noticeable in high DPI.

This is still not perfect, as the default search bitmap is not centered
neither and is a couple of pixels too high, but better than before.
This commit is contained in:
Vadim Zeitlin 2018-07-09 20:50:48 +02:00
parent 4d4e95849a
commit 42ab122912

View File

@ -521,7 +521,7 @@ void wxSearchCtrl::LayoutControls()
// of the white border that's part of the theme border. We can also remove a pixel from
// the height to fit the text control in, because the padding in EDIT_HEIGHT_FROM_CHAR_HEIGHT
// is already generous.
int textY = FromDIP(1);
int textY = FromDIP(2);
#else
int textY = 0;
#endif