diff options
author | xiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-18 04:44:25 +0000 |
---|---|---|
committer | xiyuan@chromium.org <xiyuan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-18 04:44:25 +0000 |
commit | f923fc3c8ebf4db665c292f170c1259d5d766ae8 (patch) | |
tree | f69e6fcc03c40e0e00939b161e145a3b2de13b6f /ui/app_list | |
parent | 3b05871f197e82e6f823c4e9e7f41cf8a51d0913 (diff) | |
download | chromium_src-f923fc3c8ebf4db665c292f170c1259d5d766ae8.zip chromium_src-f923fc3c8ebf4db665c292f170c1259d5d766ae8.tar.gz chromium_src-f923fc3c8ebf4db665c292f170c1259d5d766ae8.tar.bz2 |
cros: Adjust app list and sys tray bubble location.
- Change AppListButton icon offset from 7 to 9 so that the icon sits on
vertical of the button and we could get rid of the 1px up hack in AppListView.
And this would move the app list button down by 1px for bottom launcher;
- Adjust system tray's anchor rect to make the bubble exactly on launcher bar's
edges;
BUG=156246
TEST=Verify app list and sys tray bubble sits exactly on launcher bar.
R=jennyz@chromium.org,sky@chromium.org
Review URL: https://chromiumcodereview.appspot.com/11184026
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@162649 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/app_list')
-rw-r--r-- | ui/app_list/app_list_view.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ui/app_list/app_list_view.cc b/ui/app_list/app_list_view.cc index a930006..9a74fbf 100644 --- a/ui/app_list/app_list_view.cc +++ b/ui/app_list/app_list_view.cc @@ -82,10 +82,8 @@ void AppListView::InitAsBubble( set_move_with_anchor(true); set_parent_window(parent); set_close_on_deactivate(false); - // Shift anchor rect up 1px because app menu icon center is 1px above anchor - // rect center when shelf is on left/right. - set_anchor_insets(gfx::Insets(kArrowOffset - 1, kArrowOffset, - kArrowOffset + 1, kArrowOffset)); + set_anchor_insets(gfx::Insets(kArrowOffset, kArrowOffset, + kArrowOffset, kArrowOffset)); set_shadow(views::BubbleBorder::BIG_SHADOW); views::BubbleDelegateView::CreateBubble(this); SetBubbleArrowLocation(arrow_location); |