Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1121)

Unified Diff: ui/views/touchui/touch_editing_menu.cc

Issue 13142003: Fix app list position in windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: set_anchor_insets to set_anchor_view_insets Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/views/touchui/touch_editing_menu.cc
diff --git a/ui/views/touchui/touch_editing_menu.cc b/ui/views/touchui/touch_editing_menu.cc
index aa332b703b0ce6d335044113f2dd4d8c62ac3c59..0d618db9ea5879d4b7d9785d2cada2de1b5b8f17 100644
--- a/ui/views/touchui/touch_editing_menu.cc
+++ b/ui/views/touchui/touch_editing_menu.cc
@@ -61,11 +61,7 @@ TouchEditingMenuView::TouchEditingMenuView(
gfx::NativeView context)
: BubbleDelegateView(NULL, views::BubbleBorder::BOTTOM_CENTER),
controller_(controller) {
- set_anchor_point(anchor_rect.CenterPoint());
- set_anchor_insets(gfx::Insets(-anchor_rect.height() / 2,
- -anchor_rect.width() / 2,
- -anchor_rect.height() / 2,
- -anchor_rect.width() / 2));
+ set_anchor_rect(anchor_rect);
set_shadow(views::BubbleBorder::SMALL_SHADOW);
set_parent_window(context);
set_margins(gfx::Insets());

Powered by Google App Engine
This is Rietveld 408576698