Index: ash/frame/custom_frame_view_ash.cc |
diff --git a/ash/frame/custom_frame_view_ash.cc b/ash/frame/custom_frame_view_ash.cc |
index 39d756651f4e788bedcdc02397d25c93c17feb90..450015a32a3256d21b24c3845886d9bdcd4755b3 100644 |
--- a/ash/frame/custom_frame_view_ash.cc |
+++ b/ash/frame/custom_frame_view_ash.cc |
@@ -151,6 +151,8 @@ class CustomFrameViewAsh::HeaderView |
void UpdateAvatarIcon(); |
+ void SizeConstraintsChanged(); |
+ |
// views::View: |
virtual void Layout() OVERRIDE; |
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
@@ -270,6 +272,12 @@ void CustomFrameViewAsh::HeaderView::UpdateAvatarIcon() { |
Layout(); |
} |
+void CustomFrameViewAsh::HeaderView::SizeConstraintsChanged() { |
+ caption_button_container_->ResetWindowControls(); |
+ caption_button_container_->UpdateSizeButtonVisibility(); |
+ Layout(); |
+} |
+ |
/////////////////////////////////////////////////////////////////////////////// |
// CustomFrameViewAsh::HeaderView, views::View overrides: |
@@ -489,6 +497,10 @@ void CustomFrameViewAsh::UpdateWindowTitle() { |
header_view_->SchedulePaintForTitle(); |
} |
+void CustomFrameViewAsh::SizeConstraintsChanged() { |
+ header_view_->SizeConstraintsChanged(); |
+} |
+ |
//////////////////////////////////////////////////////////////////////////////// |
// CustomFrameViewAsh, views::View overrides: |