Commit 3f99ae71 authored by Gauthier Ambard's avatar Gauthier Ambard Committed by Commit Bot

[iOS] Mark workaround as non-iOS 13 only

The UIKit bug has been fixed in iOS 13, the workaround is no longer
needed.

Bug: 931173
Change-Id: Ie14df79e34a2b107a2e4733ced44509484062ce3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1649534
Auto-Submit: Gauthier Ambard <gambard@chromium.org>
Reviewed-by: default avatarJustin Cohen <justincohen@chromium.org>
Commit-Queue: Gauthier Ambard <gambard@chromium.org>
Cr-Commit-Position: refs/heads/master@{#667112}
parent 244eedee
...@@ -155,9 +155,12 @@ NSString* const kSettingsToolbarDeleteButtonId = ...@@ -155,9 +155,12 @@ NSString* const kSettingsToolbarDeleteButtonId =
- (void)viewDidLayoutSubviews { - (void)viewDidLayoutSubviews {
[super viewDidLayoutSubviews]; [super viewDidLayoutSubviews];
// TODO(crbug.com/931173): This is a workaround to fix the vertical alignment if (@available(iOS 13, *)) {
// of the back button. Remove once the UIKit bug is fixed. } else {
[self.navigationController.navigationBar setNeedsLayout]; // This is a workaround to fix the vertical alignment of the back button.
// The bug has been fixed in iOS 13. See crbug.com/931173 if needed.
[self.navigationController.navigationBar setNeedsLayout];
}
} }
#pragma mark - UITableViewDelegate #pragma mark - UITableViewDelegate
......
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