Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(292)

Unified Diff: chrome/browser/ui/views/tabs/dragged_tab_controller.cc

Issue 6288010: Position new windows correctly if a dock icon is shown but not highlighted.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tabs/dragged_tab_controller.cc
===================================================================
--- chrome/browser/ui/views/tabs/dragged_tab_controller.cc (revision 72124)
+++ chrome/browser/ui/views/tabs/dragged_tab_controller.cc (working copy)
@@ -532,7 +532,7 @@
gfx::Point DraggedTabController::GetWindowCreatePoint() const {
gfx::Point cursor_point = GetCursorScreenPoint();
- if (dock_info_.type() != DockInfo::NONE) {
+ if (dock_info_.type() != DockInfo::NONE && dock_info_.in_enable_area()) {
sky 2011/01/24 21:58:48 If dock_info_.type() == NONE then it might not con
Jamie 2011/01/25 17:13:02 Can you clarify what you mean by this? If dock_inf
// If we're going to dock, we need to return the exact coordinate,
// otherwise we may attempt to maximize on the wrong monitor.
return cursor_point;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698