Commit 3c9e8133 authored by Javier Ernesto Flores Robles's avatar Javier Ernesto Flores Robles Committed by Commit Bot

[iOS][Alert] Centers Alert to safe area

Uses the center constrains of the view's safe area instead of the view
ones.

R=kkhorimoto@chromium.org

Bug: 951300
Change-Id: If97c99f1d14dc4545833b9316364834f3862bb18
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1594712Reviewed-by: default avatarKurt Horimoto <kkhorimoto@chromium.org>
Commit-Queue: Javier Ernesto Flores Robles <javierrobles@chromium.org>
Cr-Commit-Position: refs/heads/master@{#658992}
parent 9cef9b75
......@@ -126,9 +126,9 @@ constexpr int kTextfieldBackgroundColor = 0xf7f7f7;
// Centering
[self.contentView.centerXAnchor
constraintEqualToAnchor:self.view.centerXAnchor],
constraintEqualToAnchor:self.view.safeAreaLayoutGuide.centerXAnchor],
[self.contentView.centerYAnchor
constraintEqualToAnchor:self.view.centerYAnchor],
constraintEqualToAnchor:self.view.safeAreaLayoutGuide.centerYAnchor],
// Minimum Size
[self.contentView.heightAnchor
......
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