New issue
Advanced search Search tips

Issue 900869 link

Starred by 4 users

Issue metadata

Status: Fixed
Owner:
Closed: Dec 19
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug
M72


Show other hotlists

Hotlists containing this issue:
Launcher-Broken


Sign in to add a comment

A11 keyboard opened from task bar results gap displayed and system search box hidden

Project Member Reported by zhan...@chromium.org, Nov 1

Issue description

Version 71.0.3578.27
Platform 11151.16.0 dev-channel bob test
Firmware Google_bob 8785.262.0
Google_Input_Tools_Version:71.0.20181031.219589418


REPRO STEPS:
1.Switch to A11y keyboard
2.Go to any input box, hide keyboard
3.Open keyboard by clicking keyboard icon from task bar

Actual:
a Gap between browser window and keyboard displayed, refers to 
attached video 

Note:
If open system search box, open keyboard by clicking its icon from task bar, system search box will be overlapped
 
test (5).webm
2.9 MB View Download
Labels: -M-71
Owner: shend@chromium.org
Not M71 blocker.
Cc: shend@chromium.org
Owner: manucornet@chromium.org
Hi Manu, could you PTAL? Thanks! The issue seems to be that ShelfLayoutManager is computing the work area incorrectly when the virtual keyboard is up. Specifically, the work area is shrunk by both the shelf size and the virtual keyboard size, which is wrong (this is why you see a gap between the window and the keyboard; the gap's height is the shelf height). We should only shrink by the keyboard size because the keyboard  covers the shelf.

When the VK is up, we used to set the shelf size to 0 [1], so we only shrink by the keyboard size. I can't quite figure out how the current code works. Could it be related to https://chromium-review.googlesource.com/c/chromium/src/+/1290056 ?

[1] https://chromium.googlesource.com/chromium/src/+/ad7e5862b1d5407553fae466de086f3d4b62241e/ash/shelf/shelf_layout_manager.cc#792
Components: UI>Shell>Shelf
I just (independently) did a bisect (because I thought I may have introduced this :) ) and the gap is caused by https://chromium-review.googlesource.com/c/1290056.

Thanks Steven for verifying & bisecting :)
Cc: wuyingbing@chromium.org ajha@chromium.org
 Issue 899626  has been merged into this issue.
Labels: M72 ReleaseBlock-Stable
Cc: yhanada@chromium.org
 Issue 906672  has been merged into this issue.
Status: Started (was: Assigned)
Project Member

Comment 10 by bugdroid1@chromium.org, Dec 17

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

commit ba496217cdb56b7c9e49504b47638bafe983b197
Author: Manu Cornet <manucornet@chromium.org>
Date: Mon Dec 17 17:51:28 2018

CrOS shelf: don't restrict work area further when keyboard is shown

Currently, when the virtual keyboard is shown, the work area is
restricted by the size of the keyboard, but also by the size of the
shelf. This is unnecessary because the keyboard hides the shelf
(regardless of the shelf position). Restricting the work area
further by the size of the shelf therefore creates an unnecessary
gap between open windows and the virtual keyboard.

Bug:  900869 
Change-Id: I3af4d34b3f4f6c3b9da5c399f09d736d96492dd5
Reviewed-on: https://chromium-review.googlesource.com/c/1379955
Commit-Queue: Manu Cornet <manucornet@chromium.org>
Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#617151}
[modify] https://crrev.com/ba496217cdb56b7c9e49504b47638bafe983b197/ash/shelf/shelf_layout_manager.cc
[modify] https://crrev.com/ba496217cdb56b7c9e49504b47638bafe983b197/ash/shelf/shelf_layout_manager.h
[modify] https://crrev.com/ba496217cdb56b7c9e49504b47638bafe983b197/ash/wm/pip/pip_positioner_unittest.cc

Labels: Merge-Request-72
Project Member

Comment 12 by sheriffbot@chromium.org, Dec 18

Labels: -Merge-Request-72 Merge-Review-72 Hotlist-Merge-Review
This bug requires manual review: M72 has already been promoted to the beta branch, so this requires manual review
Please contact the milestone owner if you have questions.
Owners: govind@(Android), kariahda@(iOS), djmm@(ChromeOS), abdulsyed@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Hotlist-Merge-Review -Merge-Review-72 Merge-Approved-72
Project Member

Comment 14 by bugdroid1@chromium.org, Dec 19

Labels: -merge-approved-72 merge-merged-3626
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/59a9708ef9e7e5a6ac168cc2548f3cd3076759d2

commit 59a9708ef9e7e5a6ac168cc2548f3cd3076759d2
Author: Manu Cornet <manucornet@chromium.org>
Date: Wed Dec 19 04:47:53 2018

CrOS shelf: don't restrict work area further when keyboard is shown

Currently, when the virtual keyboard is shown, the work area is
restricted by the size of the keyboard, but also by the size of the
shelf. This is unnecessary because the keyboard hides the shelf
(regardless of the shelf position). Restricting the work area
further by the size of the shelf therefore creates an unnecessary
gap between open windows and the virtual keyboard.

Bug:  900869 
Change-Id: I3af4d34b3f4f6c3b9da5c399f09d736d96492dd5
Reviewed-on: https://chromium-review.googlesource.com/c/1379955
Commit-Queue: Manu Cornet <manucornet@chromium.org>
Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#617151}(cherry picked from commit ba496217cdb56b7c9e49504b47638bafe983b197)
Reviewed-on: https://chromium-review.googlesource.com/c/1383592
Reviewed-by: Manu Cornet <manucornet@chromium.org>
Cr-Commit-Position: refs/branch-heads/3626@{#462}
Cr-Branched-From: d897fb137fbaaa9355c0c93124cc048824eb1e65-refs/heads/master@{#612437}
[modify] https://crrev.com/59a9708ef9e7e5a6ac168cc2548f3cd3076759d2/ash/shelf/shelf_layout_manager.cc
[modify] https://crrev.com/59a9708ef9e7e5a6ac168cc2548f3cd3076759d2/ash/shelf/shelf_layout_manager.h
[modify] https://crrev.com/59a9708ef9e7e5a6ac168cc2548f3cd3076759d2/ash/wm/pip/pip_positioner_unittest.cc

Status: Fixed (was: Started)
Components: -UI>Input>Text>IME
Labels: CommitLog-Audit-Violation Merge-Without-Approval M-72
Here's a summary of the rules that were executed: 
 - OnlyMergeApprovedChange: Rule Failed -- Revision 59a9708ef9e7e5a6ac168cc2548f3cd3076759d2 was merged to refs/branch-heads/3626 branch with no merge approval from a TPM! 
Please explain why this change was merged to the branch!
 - AcknowledgeMerge: Notification Required -- 
Labels: Merge-Merged-72-3626
The following revision refers to this bug: 
https://chromium.googlesource.com/chromium/src.git/+/59a9708ef9e7e5a6ac168cc2548f3cd3076759d2

Commit: 59a9708ef9e7e5a6ac168cc2548f3cd3076759d2
Author: manucornet@chromium.org
Commiter: manucornet@chromium.org
Date: 2018-12-19 04:47:53 +0000 UTC

CrOS shelf: don't restrict work area further when keyboard is shown

Currently, when the virtual keyboard is shown, the work area is
restricted by the size of the keyboard, but also by the size of the
shelf. This is unnecessary because the keyboard hides the shelf
(regardless of the shelf position). Restricting the work area
further by the size of the shelf therefore creates an unnecessary
gap between open windows and the virtual keyboard.

Bug:  900869 
Change-Id: I3af4d34b3f4f6c3b9da5c399f09d736d96492dd5
Reviewed-on: https://chromium-review.googlesource.com/c/1379955
Commit-Queue: Manu Cornet <manucornet@chromium.org>
Reviewed-by: Xiyuan Xia <xiyuan@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#617151}(cherry picked from commit ba496217cdb56b7c9e49504b47638bafe983b197)
Reviewed-on: https://chromium-review.googlesource.com/c/1383592
Reviewed-by: Manu Cornet <manucornet@chromium.org>
Cr-Commit-Position: refs/branch-heads/3626@{#462}
Cr-Branched-From: d897fb137fbaaa9355c0c93124cc048824eb1e65-refs/heads/master@{#612437}

Sign in to add a comment