This caused wxTextCtrl to become to high at higher DPI. It was added to fix appearance of wxSearchCtrl at high DPI. Remove an unneeded FromDIP there too, so it gets the same height as a normal wxTextCtrl. And centre the textctrl inside the searchctrl.