| Index: ash/system/status_area_widget_delegate.cc
|
| diff --git a/ash/system/status_area_widget_delegate.cc b/ash/system/status_area_widget_delegate.cc
|
| index 2dfe3c42b0b49562780003b2b0fd2d688d99e8ee..9aa9fdc26f4043186b2872fc039eeebc660cffcc 100644
|
| --- a/ash/system/status_area_widget_delegate.cc
|
| +++ b/ash/system/status_area_widget_delegate.cc
|
| @@ -110,10 +110,15 @@ void StatusAreaWidgetDelegate::UpdateLayout() {
|
| }
|
| }
|
| Layout();
|
| + UpdateWidgetSize();
|
| }
|
|
|
| void StatusAreaWidgetDelegate::ChildPreferredSizeChanged(View* child) {
|
| // Need to resize the window when trays or items are added/removed.
|
| + UpdateWidgetSize();
|
| +}
|
| +
|
| +void StatusAreaWidgetDelegate::UpdateWidgetSize() {
|
| if (GetWidget())
|
| GetWidget()->SetSize(GetPreferredSize());
|
| }
|
|
|