diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-10 20:11:59 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-10 20:11:59 +0000 |
commit | ce221d9f025d58085395cb8b66e68ce45d941fac (patch) | |
tree | 20723072f96086368deb35fb7fbf5d946630268a /chrome/views | |
parent | a03c3ab2b239f5617b70956f6af1f2ea6682d26f (diff) | |
download | chromium_src-ce221d9f025d58085395cb8b66e68ce45d941fac.zip chromium_src-ce221d9f025d58085395cb8b66e68ce45d941fac.tar.gz chromium_src-ce221d9f025d58085395cb8b66e68ce45d941fac.tar.bz2 |
Fixes bug where context menu for table/tree in rtl was showing up on
the wrong side.
BUG=5067
TEST=see bug
Review URL: http://codereview.chromium.org/13353
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6734 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views')
-rw-r--r-- | chrome/views/table_view.cc | 2 | ||||
-rw-r--r-- | chrome/views/tree_view.cc | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/chrome/views/table_view.cc b/chrome/views/table_view.cc index 175a96c..8403359 100644 --- a/chrome/views/table_view.cc +++ b/chrome/views/table_view.cc @@ -517,6 +517,8 @@ gfx::Point TableView::GetKeyboardContextMenuLocation() { } } gfx::Point screen_loc(0, y); + if (UILayoutIsRightToLeft()) + screen_loc.set_x(width()); ConvertPointToScreen(this, &screen_loc); return screen_loc; } diff --git a/chrome/views/tree_view.cc b/chrome/views/tree_view.cc index ffb3e4c..7d37d42e 100644 --- a/chrome/views/tree_view.cc +++ b/chrome/views/tree_view.cc @@ -298,6 +298,8 @@ gfx::Point TreeView::GetKeyboardContextMenuLocation() { } } gfx::Point screen_loc(0, y); + if (UILayoutIsRightToLeft()) + screen_loc.set_x(width()); ConvertPointToScreen(this, &screen_loc); return screen_loc; } |