From 0ae7b196b8320d08b82cfdc70ca71a4c554edb6a Mon Sep 17 00:00:00 2001 From: "oshima@chromium.org" Date: Fri, 14 Feb 2014 14:53:38 +0000 Subject: Put the logic to maximize/fullscreen window back in OnWindowAddedToLayout I'll look into if we can eliminate this. BUG=343696 Review URL: https://codereview.chromium.org/165273002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@251313 0039d316-1c4b-4281-b951-d872f2087c98 --- ash/wm/workspace/workspace_layout_manager.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ash/wm') diff --git a/ash/wm/workspace/workspace_layout_manager.cc b/ash/wm/workspace/workspace_layout_manager.cc index bb25f35..41fae51 100644 --- a/ash/wm/workspace/workspace_layout_manager.cc +++ b/ash/wm/workspace/workspace_layout_manager.cc @@ -77,6 +77,11 @@ void WorkspaceLayoutManager::OnWindowAddedToLayout(Window* child) { windows_.insert(child); child->AddObserver(this); window_state->AddObserver(this); + // TODO(oshima): This is necessary as the call in + // AdjustWindowBoundsWhenAdded is skipped when the bounds is + // empty. Investigate if we can eliminate this dup. + if (!window_state->is_dragged()) + SetMaximizedOrFullscreenBounds(window_state); UpdateShelfVisibility(); UpdateFullscreenState(); WindowPositioner::RearrangeVisibleWindowOnShow(child); -- cgit v1.1