Use dedicated function to get screen position of wxComboCtrl popup

Closes #13462.
This commit is contained in:
Artur Wieczorek
2018-11-16 18:51:36 +01:00
parent ea7f86d9f7
commit 1ba0f055e2

View File

@@ -2277,7 +2277,7 @@ void wxComboCtrlBase::ShowPopup()
wxSize ctrlSz = GetSize();
screenHeight = wxSystemSettings::GetMetric( wxSYS_SCREEN_Y );
scrPos = GetParent()->ClientToScreen(GetPosition());
scrPos = GetScreenPosition();
spaceAbove = scrPos.y;
spaceBelow = screenHeight - spaceAbove - ctrlSz.y;