diff options
author | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-16 18:59:46 +0000 |
---|---|---|
committer | thomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-16 18:59:46 +0000 |
commit | afae49add8fb4b28405a9cd8f6321eb51f69b037 (patch) | |
tree | beb5ba5c8a24426d3cbf5615b8f44c2ca3cc5cb8 /chrome/browser/login_prompt_mac.mm | |
parent | fcd84aa365a388e4939cb01cadcc207df2967158 (diff) | |
download | chromium_src-afae49add8fb4b28405a9cd8f6321eb51f69b037.zip chromium_src-afae49add8fb4b28405a9cd8f6321eb51f69b037.tar.gz chromium_src-afae49add8fb4b28405a9cd8f6321eb51f69b037.tar.bz2 |
Pick up newer GTM
Switch a bunch of window sizing over to use the helper so it's completely in all cases.
BUG=none
TEST=about box, hung renderer, edit search engine, and http auto still size correctly.
Review URL: http://codereview.chromium.org/201137
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26369 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/login_prompt_mac.mm')
-rw-r--r-- | chrome/browser/login_prompt_mac.mm | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/chrome/browser/login_prompt_mac.mm b/chrome/browser/login_prompt_mac.mm index 2264c26..8a9e93c 100644 --- a/chrome/browser/login_prompt_mac.mm +++ b/chrome/browser/login_prompt_mac.mm @@ -362,12 +362,10 @@ LoginHandler* LoginHandler::Create(URLRequest* request, MessageLoop* ui_loop) { sizeToFitFixedWidthTextField:explanationField_]; // Resize the window (no shifting needed due to window layout). - NSWindow* window = [self window]; - [[window contentView] setAutoresizesSubviews:NO]; - NSRect rect = [window frame]; - rect.size.height = rect.size.height + explanationShift; - [window setFrame:rect display:NO]; - [[window contentView] setAutoresizesSubviews:YES]; + NSSize windowDelta = NSMakeSize(0, explanationShift); + [GTMUILocalizerAndLayoutTweaker + resizeWindowWithoutAutoResizingSubViews:[self window] + delta:windowDelta]; } @end |