Fix size of wxSearchCtrl in the widgets sample in high DPI

Add missing FromDIP(), without it the control was too small.
This commit is contained in:
Vadim Zeitlin
2018-07-09 20:50:22 +02:00
parent a38176c67a
commit 4d4e95849a

View File

@@ -178,7 +178,7 @@ void SearchCtrlWidgetsPage::CreateControl()
long style = GetAttrs().m_defaultFlags;
m_srchCtrl = new wxSearchCtrl(this, -1, wxEmptyString, wxDefaultPosition,
wxSize(150, -1), style);
FromDIP(wxSize(150, -1)), style);
m_srchCtrl->Bind(wxEVT_SET_FOCUS, &SearchCtrlWidgetsPage::OnSetFocus, this);
m_srchCtrl->Bind(wxEVT_KILL_FOCUS, &SearchCtrlWidgetsPage::OnKillFocus, this);