return correct coordinates for child windows from DoGetPosition() in RTL mode (patch 1552664)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41149 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
cf072997af
commit
e5b5af9139
@ -1701,6 +1701,13 @@ void wxWindowMSW::DoGetPosition(int *x, int *y) const
|
|||||||
// children, not for the dialogs/frames
|
// children, not for the dialogs/frames
|
||||||
if ( !IsTopLevel() )
|
if ( !IsTopLevel() )
|
||||||
{
|
{
|
||||||
|
if ( wxTheApp->GetLayoutDirection() == wxLayout_RightToLeft )
|
||||||
|
{
|
||||||
|
// In RTL mode, we want the logical left x-coordinate,
|
||||||
|
// which would be the physical right x-coordinate.
|
||||||
|
point.x = rect.right;
|
||||||
|
}
|
||||||
|
|
||||||
// Since we now have the absolute screen coords, if there's a
|
// Since we now have the absolute screen coords, if there's a
|
||||||
// parent we must subtract its top left corner
|
// parent we must subtract its top left corner
|
||||||
if ( parent )
|
if ( parent )
|
||||||
|
Loading…
Reference in New Issue
Block a user