New issue
Advanced search Search tips

Issue 778571 link

Starred by 1 user

Issue metadata

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



Sign in to add a comment

History screen has an empty space between the header and the content

Project Member Reported by gambard@chromium.org, Oct 26 2017

Issue description

Chrome Version: 64.0.3250

What steps will reproduce the problem?
(1) Open chrome with an account register but not signed in
(2) Open history

What is the expected result?
The collection content should be right below the header. Or a message should be displayed in that space.

What happens instead?
There is an empty space between the header and the first history entry. Inspecting the view hierarchy, there is an empty HistoryEntriesStatusCell.
 
Simulator Screen Shot - iPhone 8 - 2017-10-26 at 11.26.00.png
149 KB View Download
Adding screenshots when User is not signed into any account.

https://drive.google.com/a/google.com/file/d/1SD0i4TU9Jbh5pHoA839UZCxkKtYziXIW/view

To give more clarity, added screenshots. 

Build : 64.0.3271.0 Canary
iOS Version: 11.1
Device: iPhone X
Cc: justincohen@chromium.org
Labels: ReleaseBlock-Stable M-65
While this bug isn't specific to iPhoneX, it looks much worse on the X.

Marking RBS for M65.

Comment 4 by sczs@chromium.org, Dec 16 2017

Status: Started (was: Assigned)
Some of the blank space is caused by the empty HistoryEntriesStatusCell

The rest of the space is iOS 11 only, and its due the topInset changing. I have a CL inflight for this.
Project Member

Comment 5 by bugdroid1@chromium.org, Dec 16 2017

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

commit d49ccee413bfe066d9357f42dbed4724ea0f1a2c
Author: sczs <sczs@chromium.org>
Date: Sat Dec 16 04:31:28 2017

[ios] Fixes History CollectionVC top margin.

Before crrev.com/c/695934, a top message was always being displayed.
Now thats not the case, this CLremoves the top cell that contains the message if there's no message.

Also, on iOS11 the contentInset was being adjusted automatically, causing an even larger
blank space on top. This is fixed by setting the ContentInsetAdjustmentBehavior to never.

Screenshots:
https://drive.google.com/open?id=1N6egGvEOeSF2uags3w4hmLupWy7Vk4v3
https://drive.google.com/open?id=1hCW15FIUtw2o5rJ7MiqDcRd1z6Xq42O0

Bug:  778571 
Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
Change-Id: I2b9f2b5f92e22f955fb10c5ea609f4ee4f130836
Reviewed-on: https://chromium-review.googlesource.com/830911
Commit-Queue: Sergio Collazos <sczs@chromium.org>
Reviewed-by: Sky Malice <skym@chromium.org>
Reviewed-by: Louis Romero <lpromero@chromium.org>
Cr-Commit-Position: refs/heads/master@{#524588}
[modify] https://crrev.com/d49ccee413bfe066d9357f42dbed4724ea0f1a2c/ios/chrome/browser/ui/history/history_collection_view_controller.mm
[modify] https://crrev.com/d49ccee413bfe066d9357f42dbed4724ea0f1a2c/ios/chrome/browser/ui/history/history_collection_view_controller_unittest.mm
[modify] https://crrev.com/d49ccee413bfe066d9357f42dbed4724ea0f1a2c/ios/chrome/browser/ui/history/history_entries_status_item.h
[modify] https://crrev.com/d49ccee413bfe066d9357f42dbed4724ea0f1a2c/ios/chrome/browser/ui/history/history_entries_status_item.mm
[modify] https://crrev.com/d49ccee413bfe066d9357f42dbed4724ea0f1a2c/ios/chrome/browser/ui/history/history_entries_status_item_unittest.mm

Comment 6 by sczs@chromium.org, Dec 16 2017

Status: Fixed (was: Started)
Status: Verified (was: Fixed)
Issue verified under
Version: 65.0.3299.0 canary
Device: iPhoneX
iOS: 11.1.2

Refer to:
https://drive.google.com/open?id=15L6gcvFx0kJHIllMzst5pD_ghP6VDmBJ

Sign in to add a comment