Index: ash/shelf/shelf_layout_manager.cc |
diff --git a/ash/shelf/shelf_layout_manager.cc b/ash/shelf/shelf_layout_manager.cc |
index 1971f62e63b7e9dcf4eed06afcea088367719c3e..3d9e6a5793935bf5ec76a1dd1209bc3d7b1615d0 100644 |
--- a/ash/shelf/shelf_layout_manager.cc |
+++ b/ash/shelf/shelf_layout_manager.cc |
@@ -1119,11 +1119,11 @@ void ShelfLayoutManager::OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) { |
void ShelfLayoutManager::OnDockBoundsChanging( |
const gfx::Rect& dock_bounds, |
DockedWindowLayoutManagerObserver::Reason reason) { |
- // Skip shelf layout in case docked notification originates from this class. |
- if (reason == DISPLAY_INSETS_CHANGED) |
- return; |
if (dock_bounds_ != dock_bounds) { |
dock_bounds_ = dock_bounds; |
+ // Skip shelf layout in case docked notification originates from this class. |
+ if (reason == DISPLAY_INSETS_CHANGED) |
+ return; |
OnWindowResized(); |
UpdateVisibilityState(); |
UpdateShelfBackground(BACKGROUND_CHANGE_ANIMATE); |