Index: athena/home/home_card_impl.cc |
diff --git a/athena/home/home_card_impl.cc b/athena/home/home_card_impl.cc |
index 0066cf3d3be8e000d6fe2972df30c5e20fa8b190..280b2ab5932e0386f241c9d00f1ee1bbf24b4b92 100644 |
--- a/athena/home/home_card_impl.cc |
+++ b/athena/home/home_card_impl.cc |
@@ -120,11 +120,11 @@ class HomeCardLayoutManager : public aura::LayoutManager { |
home_card_ = NULL; |
} |
virtual void OnWindowRemovedFromLayout(aura::Window* child) OVERRIDE { |
- Layout(false); |
} |
virtual void OnChildWindowVisibilityChanged(aura::Window* child, |
bool visible) OVERRIDE { |
- Layout(false); |
+ if (home_card_ == child) |
+ Layout(false); |
} |
virtual void SetChildBounds(aura::Window* child, |
const gfx::Rect& requested_bounds) OVERRIDE { |