From c4b37573a90ce6cfd97fecc4fc522f44775e4e7a Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 7 Jan 2007 16:18:55 +0000 Subject: [PATCH] fix combobox dropdown position in RTL (patch 1623127) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44123 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/combocmn.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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. -- 2.45.2