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
This commit is contained in:
parent
0ae9003c21
commit
f928b1ab18
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user