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

Unified Diff: chrome/browser/ui/cocoa/autofill/autofill_dialog_window_controller.mm

Issue 97993006: [rAC, OSX] Force better initial size for sign-in (2nd try) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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
Index: chrome/browser/ui/cocoa/autofill/autofill_dialog_window_controller.mm
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_dialog_window_controller.mm b/chrome/browser/ui/cocoa/autofill/autofill_dialog_window_controller.mm
index c8f0e019716204ccbd07861b74dd0126c8edc274..337bcf6ee41fedf90f234114c74a4fa2cfc1d743 100644
--- a/chrome/browser/ui/cocoa/autofill/autofill_dialog_window_controller.mm
+++ b/chrome/browser/ui/cocoa/autofill/autofill_dialog_window_controller.mm
@@ -396,7 +396,12 @@ const CGFloat kMinimumContentsHeight = 101;
- (content::NavigationController*)showSignIn {
[self updateSignInSizeConstraints];
+ // Ensure |signInContainer_| is set to the same size as |mainContainer_|, to
+ // force its minimum size so that there will not be a resize until the
+ // contents are loaded.
+ [[signInContainer_ view] setFrameSize:[[mainContainer_ view] frame].size];
[signInContainer_ loadSignInPage];
+
[[signInContainer_ view] setHidden:NO];
[self updateMainContainerVisibility];
[self requestRelayout];

Powered by Google App Engine
This is Rietveld 408576698