diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-09 23:55:50 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-09 23:55:50 +0000 |
commit | df1e4fc94bda9ee5576b566aade733ccc53a9d3f (patch) | |
tree | 5ff9aac10140592feb825bf600109f3cd1e7c674 /ash/wm/dock | |
parent | 98a4770f0f4c110fda6116b6b6846ee946d4c2c7 (diff) | |
download | chromium_src-df1e4fc94bda9ee5576b566aade733ccc53a9d3f.zip chromium_src-df1e4fc94bda9ee5576b566aade733ccc53a9d3f.tar.gz chromium_src-df1e4fc94bda9ee5576b566aade733ccc53a9d3f.tar.bz2 |
Revert 243986 "Fix AdjustBoundsToEnsureWindowVisibility to work ..."
> Fix AdjustBoundsToEnsureWindowVisibility to work with non primary display bounds
> This was asssuming that the visibile area has 0,0 origin.
>
> Move the code to ensure minimum visibility when added, from
> WorkspaceLayoutManager to DragWindowResizer.
>
> BUG=none
> TEST=WindowUtilTest.AdjustBoundsToEnsureWindowVisibility.
> This also fixes the test that was failing.
> TBR=oshima@chromium.org
>
> Review URL: https://codereview.chromium.org/106303005
TBR=oshima@chromium.org
Review URL: https://codereview.chromium.org/131543006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244021 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/wm/dock')
-rw-r--r-- | ash/wm/dock/docked_window_layout_manager.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/ash/wm/dock/docked_window_layout_manager.cc b/ash/wm/dock/docked_window_layout_manager.cc index 5d16a24..0a648a0 100644 --- a/ash/wm/dock/docked_window_layout_manager.cc +++ b/ash/wm/dock/docked_window_layout_manager.cc @@ -593,9 +593,6 @@ void DockedWindowLayoutManager::OnWindowAddedToLayout(aura::Window* child) { if (child == dragged_window_) return; // If this is the first window getting docked - update alignment. - // TODO(oshima|varkha): A window can be added without proper bounds when - // window is moved to another display via API or due to display configuration - // change, so the the alignment may not be valid. if (alignment_ == DOCKED_ALIGNMENT_NONE) { alignment_ = GetAlignmentOfWindow(child); DCHECK(alignment_ != DOCKED_ALIGNMENT_NONE); |