Chromium Code Reviews| 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. |