]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/combocmn.cpp
fix wxConfig::DeleteGroup() for arguments with trailing slash (replaces patch 1624589)
[wxWidgets.git] / src / common / combocmn.cpp
index f47619998ea5541fdafc8f0544e9a0452941b9bd..ce682f595ec8651769700a27823f783fef32af90 100644 (file)
@@ -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.