Index: ash/wm/workspace/workspace_window_resizer.cc |
diff --git a/ash/wm/workspace/workspace_window_resizer.cc b/ash/wm/workspace/workspace_window_resizer.cc |
index 57c70f68d569a3b29c20b19a00c153b20f1c082f..3e796aa99ac687f07a9e5bcc579d9a1a38926ccb 100644 |
--- a/ash/wm/workspace/workspace_window_resizer.cc |
+++ b/ash/wm/workspace/workspace_window_resizer.cc |
@@ -283,8 +283,8 @@ gfx::Rect WorkspaceWindowResizer::GetFinalBounds( |
void WorkspaceWindowResizer::LayoutAttachedWindows( |
const gfx::Rect& bounds, |
int grid_size) { |
- gfx::Rect work_area( |
- gfx::Screen::GetDisplayNearestWindow(window()).work_area()); |
+ // |bounds| and |work_area| are in |window()->parent()|'s coordinates. |
sky
2012/08/09 15:57:33
Remove comment since coordinate system is document
mazda
2012/08/09 16:08:50
Done.
|
+ gfx::Rect work_area(ScreenAsh::GetDisplayWorkAreaBoundsInParent(window())); |
std::vector<int> sizes; |
CalculateAttachedSizes( |
PrimaryAxisSize(details_.initial_bounds.size()), |