| Index: ash/shelf/shelf_view.cc
|
| diff --git a/ash/shelf/shelf_view.cc b/ash/shelf/shelf_view.cc
|
| index d13f70cc7d534425930baa10233763fc4c98cb0b..61f61d93609fcf123506a951c5c39af0e4a5e33b 100644
|
| --- a/ash/shelf/shelf_view.cc
|
| +++ b/ash/shelf/shelf_view.cc
|
| @@ -1381,7 +1381,7 @@ gfx::Size ShelfView::GetPreferredSize() {
|
|
|
| const gfx::Rect last_button_bounds =
|
| last_button_index >= first_visible_index_ ?
|
| - view_model_->view_at(last_button_index)->bounds() :
|
| + view_model_->ideal_bounds(last_button_index) :
|
| gfx::Rect(gfx::Size(preferred_size, preferred_size));
|
|
|
| if (layout_manager_->IsHorizontalAlignment()) {
|
|
|