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

Issue 764877 link

Starred by 1 user

Issue metadata

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



Sign in to add a comment

Tools menu overlaps with camera and sensor shelf in landscape mode on iPhoneX

Project Member Reported by linds...@chromium.org, Sep 13 2017

Issue description

App Version: 63.0.3215.0
iOS Version: iOS11
Device: iPhoneX Sim
URL: NTP 

Steps to reproduce:
  1. Launch app
  2. Open new tab and turn device to landscape mode
  3. Tap on 3 dots tools menu

Observed results:
Observe the right side of the tools menu is overlapped by the camera and sensor shelf on iPhoneX.

Expected results:
Tools menu should be padded on the right to account for the camera and sensor shelf on iPhoneX.

Screenshot: https://drive.google.com/file/d/0By4O1f2IQqQ_WXJLUFhRSjdsSGs/view
 
Cc: jif@chromium.org
Components: UI>Browser>Toolbar
Owner: rohitrao@chromium.org
Status: Assigned (was: Untriaged)

Comment 2 by pkl@chromium.org, Sep 19 2017

Cc: rohitrao@chromium.org
Labels: -Pri-1 M-63 Pri-2
Owner: jif@chromium.org
-> jif

Comment 3 by pkl@chromium.org, Sep 20 2017

Labels: -Pri-2 Pri-1
Owner: gambard@chromium.org
Taking this.
Project Member

Comment 5 by bugdroid1@chromium.org, Oct 19 2017

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

commit bf38224605234c859e7d73b9f5883180bf116524
Author: Gauthier Ambard <gambard@chromium.org>
Date: Thu Oct 19 14:51:28 2017

Toolbar content respects safe area

The content of the toolbar needs to respect the safe area. This CL
fixes the content displayed outside of the safe area by creating a
contentView respecting the safe area boundaries.
The content is added to this view instead of the ToolbarView.

This also makes the back menu dropdown to be displayed inside the safe
area.
It also dismisses it during device rotation.

Bug:  765304 ,  776340 ,  764877 
Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: Ia4f5b8499644b0b406a94a723bde1a6d80928cd0
Reviewed-on: https://chromium-review.googlesource.com/727890
Commit-Queue: Gauthier Ambard <gambard@chromium.org>
Reviewed-by: Rohit Rao (ping after 24h) <rohitrao@chromium.org>
Cr-Commit-Position: refs/heads/master@{#510083}
[modify] https://crrev.com/bf38224605234c859e7d73b9f5883180bf116524/ios/chrome/browser/ui/browser_view_controller.mm
[modify] https://crrev.com/bf38224605234c859e7d73b9f5883180bf116524/ios/chrome/browser/ui/ntp/new_tab_page_toolbar_controller.mm
[modify] https://crrev.com/bf38224605234c859e7d73b9f5883180bf116524/ios/chrome/browser/ui/stack_view/stack_view_toolbar_controller.mm
[modify] https://crrev.com/bf38224605234c859e7d73b9f5883180bf116524/ios/chrome/browser/ui/toolbar/toolbar_controller.h
[modify] https://crrev.com/bf38224605234c859e7d73b9f5883180bf116524/ios/chrome/browser/ui/toolbar/toolbar_controller.mm
[modify] https://crrev.com/bf38224605234c859e7d73b9f5883180bf116524/ios/chrome/browser/ui/toolbar/web_toolbar_controller.mm
[modify] https://crrev.com/bf38224605234c859e7d73b9f5883180bf116524/ios/chrome/browser/ui/tools_menu/tools_popup_controller.mm

Status: Fixed (was: Assigned)
Please track whether this needs to be merged to 63 branch, @gambard.
Project Member

Comment 8 by bugdroid1@chromium.org, Oct 23 2017

Labels: merge-merged-3239
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/13b3c197c20a787abb76e7069db77c80a486bea0

commit 13b3c197c20a787abb76e7069db77c80a486bea0
Author: Gauthier Ambard <gambard@chromium.org>
Date: Mon Oct 23 06:30:16 2017

Toolbar content respects safe area

The content of the toolbar needs to respect the safe area. This CL
fixes the content displayed outside of the safe area by creating a
contentView respecting the safe area boundaries.
The content is added to this view instead of the ToolbarView.

This also makes the back menu dropdown to be displayed inside the safe
area.
It also dismisses it during device rotation.

Bug:  765304 ,  776340 ,  764877 
Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet
Change-Id: Ia4f5b8499644b0b406a94a723bde1a6d80928cd0
Reviewed-on: https://chromium-review.googlesource.com/727890
Commit-Queue: Gauthier Ambard <gambard@chromium.org>
Reviewed-by: Rohit Rao (ping after 24h) <rohitrao@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#510083}(cherry picked from commit bf38224605234c859e7d73b9f5883180bf116524)
Reviewed-on: https://chromium-review.googlesource.com/732817
Reviewed-by: Gauthier Ambard <gambard@chromium.org>
Cr-Commit-Position: refs/branch-heads/3239@{#146}
Cr-Branched-From: adb61db19020ed8ecee5e91b1a0ea4c924ae2988-refs/heads/master@{#508578}
[modify] https://crrev.com/13b3c197c20a787abb76e7069db77c80a486bea0/ios/chrome/browser/ui/browser_view_controller.mm
[modify] https://crrev.com/13b3c197c20a787abb76e7069db77c80a486bea0/ios/chrome/browser/ui/ntp/new_tab_page_toolbar_controller.mm
[modify] https://crrev.com/13b3c197c20a787abb76e7069db77c80a486bea0/ios/chrome/browser/ui/stack_view/stack_view_toolbar_controller.mm
[modify] https://crrev.com/13b3c197c20a787abb76e7069db77c80a486bea0/ios/chrome/browser/ui/toolbar/toolbar_controller.h
[modify] https://crrev.com/13b3c197c20a787abb76e7069db77c80a486bea0/ios/chrome/browser/ui/toolbar/toolbar_controller.mm
[modify] https://crrev.com/13b3c197c20a787abb76e7069db77c80a486bea0/ios/chrome/browser/ui/toolbar/web_toolbar_controller.mm
[modify] https://crrev.com/13b3c197c20a787abb76e7069db77c80a486bea0/ios/chrome/browser/ui/tools_menu/tools_popup_controller.mm

Verified on 64.0.3249.0 canary
iPhoneX Simulator.
Screenshot: https://drive.google.com/file/d/1d5wcuBHKqYxRIGrjQVPJiYUTVVjsEv74/view
Status: Verified (was: Fixed)
Verified in M63.0.3239.19 beta
iPhoneX Simulator

Sign in to add a comment