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

Issue 385106: [Mac] Fix weird layout issues when dragging a tab from a large screen to a sm... (Closed)

Created:
11 years, 1 month ago by rohitrao (ping after 24h)
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, John Grabowski, pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

[Mac] Fix weird layout issues when dragging a tab from a large screen to a small one. BUG=http://crbug.com/27652 TEST=With two monitors of different vertical sizes connected, make a chrome window on the larger monitor, as tall as the monitor. Drag it over to the smaller monitor and drop it. The window should not re-layout weirdly during the drag and should continue to have a tab strip after the drop. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=31967

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -0 lines) Patch
M chrome/browser/cocoa/chrome_browser_window.mm View 1 2 3 1 chunk +11 lines, -0 lines 1 comment Download
M chrome/browser/cocoa/tab_window_controller.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/tab_window_controller.mm View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
pink (ping after 24hrs)
we're discussing a better idea on irc. this wasn't intended to be LGTM'd.
11 years, 1 month ago (2009-11-13 21:02:36 UTC) #1
rohitrao (ping after 24h)
Ok, this is better now, but be warned that I plan to sneak the awesome ...
11 years, 1 month ago (2009-11-13 21:24:35 UTC) #2
pink (ping after 24hrs)
http://codereview.chromium.org/385106/diff/4/2001 File chrome/browser/cocoa/chrome_browser_window.mm (right): http://codereview.chromium.org/385106/diff/4/2001#newcode335 Line 335: if ([[self delegate] overlayWindow]) you should ensure that ...
11 years, 1 month ago (2009-11-13 21:33:52 UTC) #3
pink (ping after 24hrs)
or better still, just pass the constrainFrameRect:inScreen: to the delegate and have it return the ...
11 years, 1 month ago (2009-11-13 21:35:11 UTC) #4
pink (ping after 24hrs)
11 years, 1 month ago (2009-11-13 22:09:57 UTC) #5
LGTM

http://codereview.chromium.org/385106/diff/6/7
File chrome/browser/cocoa/chrome_browser_window.mm (right):

http://codereview.chromium.org/385106/diff/6/7#newcode332
Line 332: - (NSRect)constrainFrameRect:(NSRect)frame toScreen:(NSScreen*)screen
{
add a comment on when and why this gets called.

Powered by Google App Engine
This is Rietveld 408576698