| Index: ui/gfx/win/hwnd_util.cc
|
| diff --git a/ui/gfx/win/hwnd_util.cc b/ui/gfx/win/hwnd_util.cc
|
| index 4f060664eb081cc139e692b7e6f7108838dd4ae1..c5b2a9c046cb56fe52dde5c3f88f481e639e0f4f 100644
|
| --- a/ui/gfx/win/hwnd_util.cc
|
| +++ b/ui/gfx/win/hwnd_util.cc
|
| @@ -207,9 +207,10 @@ void CheckWindowCreated(HWND hwnd) {
|
| void ShowSystemMenu(HWND window) {
|
| RECT rect;
|
| GetWindowRect(window, &rect);
|
| - Point point = Point(rect.left, rect.top);
|
| + Point point = Point(base::i18n::IsRTL() ? rect.right : rect.left, rect.top);
|
| static const int kSystemMenuOffset = 10;
|
| - point.Offset(kSystemMenuOffset, kSystemMenuOffset);
|
| + point.Offset(base::i18n::IsRTL() ? -kSystemMenuOffset : kSystemMenuOffset,
|
| + kSystemMenuOffset);
|
| ShowSystemMenuAtPoint(window, point);
|
| }
|
|
|
|
|