New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 784408 link

Starred by 1 user

Issue metadata

Status: Verified
Owner:
Closed: Nov 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 3
Type: Bug



Sign in to add a comment

Omnibox is too wide when opening a new tab on iPhone X landscape

Project Member Reported by gambard@chromium.org, Nov 13 2017

Issue description

iPhone X only.

What steps will reproduce the problem?
(1) Open chrome in landscape
(2) Open a NTP

What is the expected result?
The omnibox should be in the correct size directly.

What happens instead?
The omnibox is too wide. It does not take into account the safe area insets when drawing it.
 
Labels: zine-triaged
Cc: -justincohen@chromium.org gambard@chromium.org
Owner: justincohen@chromium.org
Status: Started (was: Assigned)
Project Member

Comment 4 by bugdroid1@chromium.org, Nov 22 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/34b0c9f166247ca3652886df178d3e8ac7eacb8a

commit 34b0c9f166247ca3652886df178d3e8ac7eacb8a
Author: Justin Cohen <justincohen@google.com>
Date: Wed Nov 22 15:34:28 2017

[ios] Omnibox is too wide when opening a new tab on iPhone X landscape.

-headerForView is regularly called before self.headerView has been added
to the view hierarchy, so there's no simple way to get the correct
safeAreaInsets.  Since this situation is universally called for the full
screen new tab animation, it's safe to check the rootViewController's
view instead.

Bug:  784408 
Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
Change-Id: Iadee7033eeb461bc4a10a28c8bd30c482afbb226
Reviewed-on: https://chromium-review.googlesource.com/780525
Reviewed-by: Gauthier Ambard <gambard@chromium.org>
Commit-Queue: Justin Cohen <justincohen@chromium.org>
Cr-Commit-Position: refs/heads/master@{#518640}
[modify] https://crrev.com/34b0c9f166247ca3652886df178d3e8ac7eacb8a/ios/chrome/browser/content_suggestions/content_suggestions_header_view_controller.mm

Status: Fixed (was: Started)
Status: Verified (was: Fixed)
Verified in 64.0.3279.0 canary, iPhone X iOS 11.2
Looks good.

Sign in to add a comment