diff options
author | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-14 00:13:35 +0000 |
---|---|---|
committer | rohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-14 00:13:35 +0000 |
commit | a6c513da38eac47ff5898153b8995571892ef75a (patch) | |
tree | 9f6875ef691858a7bdcc029b4ae74d8bd1826138 /chrome/browser/cocoa/tab_window_controller.mm | |
parent | 98c2b16db508ecbdf0398a78cf68cf4dc938d697 (diff) | |
download | chromium_src-a6c513da38eac47ff5898153b8995571892ef75a.zip chromium_src-a6c513da38eac47ff5898153b8995571892ef75a.tar.gz chromium_src-a6c513da38eac47ff5898153b8995571892ef75a.tar.bz2 |
[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.
Review URL: http://codereview.chromium.org/385106
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31967 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/tab_window_controller.mm')
-rw-r--r-- | chrome/browser/cocoa/tab_window_controller.mm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/tab_window_controller.mm b/chrome/browser/cocoa/tab_window_controller.mm index b627214..c8e881c 100644 --- a/chrome/browser/cocoa/tab_window_controller.mm +++ b/chrome/browser/cocoa/tab_window_controller.mm @@ -125,6 +125,12 @@ return overlayWindow_; } +- (BOOL)shouldConstrainFrameRect { + // If we currently have an overlay window, do not attempt to change the + // window's size, as our overlay window doesn't know how to resize properly. + return overlayWindow_ == nil; +} + - (BOOL)canReceiveFrom:(TabWindowController*)source { // subclass must implement NOTIMPLEMENTED(); |