summaryrefslogtreecommitdiffstats
path: root/chrome/views
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/views')
-rw-r--r--chrome/views/table_view.cc2
-rw-r--r--chrome/views/tree_view.cc2
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;
}