Commit c851163b authored by David Jean's avatar David Jean Committed by Commit Bot

[ios] Fixed Multi-Window size issue on iPhone portrait

Reverse case of problem solved in cl 2359137.
Closing chrome with window in landscape and restarting in
portrait leads in blank areas.

Bug: 1113187
Change-Id: Ie0155d49cf50e23ff0cd95c9afc49598080a5162
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2377807Reviewed-by: default avatarMark Cogan <marq@chromium.org>
Commit-Queue: David Jean <djean@chromium.org>
Cr-Commit-Position: refs/heads/master@{#802132}
parent 3b5346dd
......@@ -73,9 +73,9 @@
- (void)setFrame:(CGRect)rect {
if (@available(iOS 13, *)) {
if (!IsIPadIdiom() && (rect.origin.x < 0 || rect.origin.y < 0)) {
if (!IsIPadIdiom() && (rect.origin.x != 0 || rect.origin.y != 0)) {
// skip, this rect is wrong and probably in portrait while
// display is in landscape.
// display is in landscape or vice-versa.
} else {
[super setFrame:rect];
}
......
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