| Index: ui/views/widget/native_widget_aura.cc
|
| diff --git a/ui/views/widget/native_widget_aura.cc b/ui/views/widget/native_widget_aura.cc
|
| index 33081601f044dea3245debaeb568bd927376ab52..b362c073912dc501d09ff89708fb7655d31af024 100644
|
| --- a/ui/views/widget/native_widget_aura.cc
|
| +++ b/ui/views/widget/native_widget_aura.cc
|
| @@ -317,6 +317,8 @@ void NativeWidgetAura::CenterWindow(const gfx::Size& size) {
|
| if (!window_ || is_parallel_widget_in_window_manager_)
|
| return;
|
|
|
| + window_->SetProperty(aura::client::kPreferredSize, new gfx::Size(size));
|
| +
|
| gfx::Rect parent_bounds(window_->parent()->GetBoundsInRootWindow());
|
| // When centering window, we take the intersection of the host and
|
| // the parent. We assume the root window represents the visible
|
|
|