From f928b1ab18d02ea6eaace9ec34b080744b5910fa Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 24 Dec 2006 12:16:28 +0000 Subject: [PATCH] fix hint rect position for RTL (patch 1618719 from Tim Kosse) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/aui/framemanager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/aui/framemanager.cpp b/src/aui/framemanager.cpp index 2b6871ccb8..e758807ecc 100644 --- a/src/aui/framemanager.cpp +++ b/src/aui/framemanager.cpp @@ -3250,6 +3250,12 @@ wxRect wxAuiManager::CalculateHintRect(wxWindow* pane_window, // actually show the hint rectangle on the screen m_frame->ClientToScreen(&rect.x, &rect.y); + if ( m_frame->GetLayoutDirection() == wxLayout_RightToLeft ) + { + // Mirror rectangle in RTL mode + rect.x -= rect.GetWidth(); + } + return rect; } -- 2.45.2