Commit 6ccb6aee authored by Jérôme Lebel's avatar Jérôme Lebel Committed by Commit Bot

[iOS] Moving up the sign in buttons inside the safe area

Adding a fix that should have been committed with crrev.com/1286659

When the OK button layout is updated, the container layout should be
updated too.

Bug: 897105
Change-Id: I80a22e755d3255b4ce2c5f637280a3ac7576f1a5
Reviewed-on: https://chromium-review.googlesource.com/c/1290978Reviewed-by: default avatarGauthier Ambard <gambard@chromium.org>
Commit-Queue: Jérôme Lebel <jlebel@chromium.org>
Cr-Commit-Position: refs/heads/master@{#601137}
parent 9cd252e6
...@@ -322,7 +322,7 @@ const char kPrivacyNoticeUrl[] = "internal://privacy-notice"; ...@@ -322,7 +322,7 @@ const char kPrivacyNoticeUrl[] = "internal://privacy-notice";
- (void)safeAreaInsetsDidChange { - (void)safeAreaInsetsDidChange {
[super safeAreaInsetsDidChange]; [super safeAreaInsetsDidChange];
[self layoutOKButton]; [self layoutOKButtonAndContainerView];
} }
- (void)layoutSubviews { - (void)layoutSubviews {
...@@ -332,6 +332,10 @@ const char kPrivacyNoticeUrl[] = "internal://privacy-notice"; ...@@ -332,6 +332,10 @@ const char kPrivacyNoticeUrl[] = "internal://privacy-notice";
[self layoutTOSLabel]; [self layoutTOSLabel];
[self layoutOptInLabel]; [self layoutOptInLabel];
[self layoutCheckBoxButton]; [self layoutCheckBoxButton];
[self layoutOKButtonAndContainerView];
}
- (void)layoutOKButtonAndContainerView {
// The OK Button must be laid out before the container view so that the // The OK Button must be laid out before the container view so that the
// container view can take its position into account. // container view can take its position into account.
[self layoutOKButton]; [self layoutOKButton];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment