Commit e1c89a22 authored by Alex Newcomer's avatar Alex Newcomer Committed by Commit Bot

cros: Make AppList Menus right align

Change the alignment for app menus to right aligned instead of left
aligned.

Bug: 846940
Change-Id: I34d8736d93117aa39306b5beb4c2e48b11f4122e
Reviewed-on: https://chromium-review.googlesource.com/1103383Reviewed-by: default avatarYury Khmel <khmel@chromium.org>
Commit-Queue: Alex Newcomer <newcomer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#570247}
parent 1143433f
......@@ -298,7 +298,7 @@ void AppListItemView::OnContextMenuModelReceived(
run_types |= views::MenuRunner::USE_TOUCHABLE_LAYOUT |
views::MenuRunner::FIXED_ANCHOR |
views::MenuRunner::CONTEXT_MENU;
anchor_position = views::MENU_ANCHOR_BUBBLE_TOUCHABLE_LEFT;
anchor_position = views::MENU_ANCHOR_BUBBLE_TOUCHABLE_RIGHT;
anchor_rect = apps_grid_view_->GetIdealBounds(this);
// Anchor the menu to the same rect that is used for selection highlight.
anchor_rect.ClampToCenteredSize(
......
......@@ -369,7 +369,7 @@ void SearchResultTileItemView::OnGetContextMenuModel(
gfx::Rect anchor_rect = gfx::Rect(point, gfx::Size());
if (::features::IsTouchableAppContextMenuEnabled()) {
anchor_position = views::MENU_ANCHOR_BUBBLE_TOUCHABLE_LEFT;
anchor_position = views::MENU_ANCHOR_BUBBLE_TOUCHABLE_RIGHT;
run_types |= views::MenuRunner::USE_TOUCHABLE_LAYOUT |
views::MenuRunner::CONTEXT_MENU |
views::MenuRunner::FIXED_ANCHOR;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment