]> git.saurik.com Git - wxWidgets.git/commitdiff
fix hint rect position for RTL (patch 1618719 from Tim Kosse)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Dec 2006 12:16:28 +0000 (12:16 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 24 Dec 2006 12:16:28 +0000 (12:16 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/aui/framemanager.cpp

index 2b6871ccb856a569a5cca1c4c757260539c636a6..e758807ecc5a993551f4217c05fee6a2b03dab10 100644 (file)
@@ -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;
 }