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]; |