| Index: ash/shelf/shelf_view.cc
|
| diff --git a/ash/shelf/shelf_view.cc b/ash/shelf/shelf_view.cc
|
| index 9be5a0857adf070f366d7f998055bac8d43d747c..e8a3d28f0d0b72c68996b357c2792bd4b2e3696c 100644
|
| --- a/ash/shelf/shelf_view.cc
|
| +++ b/ash/shelf/shelf_view.cc
|
| @@ -317,7 +317,7 @@ void ShelfView::OnShelfAlignmentChanged() {
|
|
|
| gfx::Rect ShelfView::GetIdealBoundsOfItemIcon(ShelfID id) {
|
| int index = model_->ItemIndexByID(id);
|
| - if (index == -1)
|
| + if (index < 0 || last_visible_index_ < 0)
|
| return gfx::Rect();
|
| // Map all items from overflow area to the overflow button. Note that the
|
| // section between last_index_hidden_ and model_->FirstPanelIndex() is the
|
|
|