summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents
diff options
context:
space:
mode:
authorrohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-07 16:03:09 +0000
committerrohitrao@chromium.org <rohitrao@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-10-07 16:03:09 +0000
commit6b12c10255094d0255b8ac8e757786ad2430d597 (patch)
tree9d448f2a0d20e22afdb3267b2074b65e647da153 /chrome/browser/tab_contents
parentf9dfa843574d71652860c3fc096b96dbc41b2fcb (diff)
downloadchromium_src-6b12c10255094d0255b8ac8e757786ad2430d597.zip
chromium_src-6b12c10255094d0255b8ac8e757786ad2430d597.tar.gz
chromium_src-6b12c10255094d0255b8ac8e757786ad2430d597.tar.bz2
[Mac] Set the TabContentsViewCocoa's resizing mask at creation time.
It is better to set this mask once, at creation, rather than scattered about the code at insertion time. BUG=None TEST=Browser window should still resize properly. Review URL: http://codereview.chromium.org/3564019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61793 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r--chrome/browser/tab_contents/tab_contents_view_mac.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/tab_contents_view_mac.mm b/chrome/browser/tab_contents/tab_contents_view_mac.mm
index 9085525..f19c0a4 100644
--- a/chrome/browser/tab_contents/tab_contents_view_mac.mm
+++ b/chrome/browser/tab_contents/tab_contents_view_mac.mm
@@ -80,6 +80,7 @@ TabContentsViewMac::~TabContentsViewMac() {
void TabContentsViewMac::CreateView(const gfx::Size& initial_size) {
TabContentsViewCocoa* view =
[[TabContentsViewCocoa alloc] initWithTabContentsViewMac:this];
+ [view setAutoresizingMask:NSViewWidthSizable|NSViewHeightSizable];
cocoa_view_.reset(view);
}