X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d7e15728ea9a8d03101600a8c7863896607c3f0b..35c4b4da0a28029dc841147ef6fd183b87d2cc8f:/src/common/combocmn.cpp diff --git a/src/common/combocmn.cpp b/src/common/combocmn.cpp index f47619998e..ce682f595e 100644 --- a/src/common/combocmn.cpp +++ b/src/common/combocmn.cpp @@ -1881,6 +1881,10 @@ void wxComboCtrlBase::ShowPopup() int rightX = scrPos.x + ctrlSz.x + m_extRight - szp.x; int leftX = scrPos.x - m_extLeft; + + if ( wxTheApp->GetLayoutDirection() == wxLayout_RightToLeft ) + leftX -= ctrlSz.x; + int screenWidth = wxSystemSettings::GetMetric( wxSYS_SCREEN_X ); // If there is not enough horizontal space, anchor on the other side.