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

Unified Diff: ui/app_list/views/contents_view.cc

Issue 894203004: Add a proper shadow to the experimental app list search box. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@make_doodle_clickable
Patch Set: Created 5 years, 11 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/app_list/views/contents_view.cc
diff --git a/ui/app_list/views/contents_view.cc b/ui/app_list/views/contents_view.cc
index 069afa01d921e6bed28db5f6f4395d369bd8bc67..3de10189dd144864bb56ad225f180258e2a6f018 100644
--- a/ui/app_list/views/contents_view.cc
+++ b/ui/app_list/views/contents_view.cc
@@ -469,8 +469,10 @@ void ContentsView::Layout() {
// same as the app list widget so don't move it.
views::Widget* search_box_widget = GetSearchBoxView()->GetWidget();
if (search_box_widget && search_box_widget != GetWidget()) {
- search_box_widget->SetBounds(
- ConvertRectToWidget(GetSearchBoxBoundsForState(GetActiveState())));
+ gfx::Rect search_box_bounds = GetSearchBoxBoundsForState(GetActiveState());
+ search_box_widget->SetBounds(ConvertRectToWidget(
+ GetSearchBoxView()->GetViewBoundsForSearchBoxContentsBounds(
+ search_box_bounds)));
Matt Giuca 2015/02/03 07:29:23 Would have looked funnier as a giant nested expres
calamity 2015/02/04 03:37:01 Acknowledged.
}
// Immediately finish all current animations.

Powered by Google App Engine
This is Rietveld 408576698