New issue
Advanced search Search tips

Issue 897771 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Nov 6
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug



Sign in to add a comment

Chrome OS shelf placement broken in unified display mode

Project Member Reported by msw@chromium.org, Oct 22

Issue description

Chrome OS shelf placement broken in unified display mode

On Chrome OS 72.0.3582.0 and ToT linux-chromeos @ #600836

(1) Enable unified mode in about:flags #ash-enable-unified-desktop and plug in another display.
    (or run chrome --ash-enable-unified-desktop --ash-host-window-bounds=500x500,0+500-500x500)

(2) Set the shelf to the right position (right click desktop -> Shelf position -> right)
Expected: Shelf is on the right side of the unified desktop (right display), doesn't spill between displays.
Actual: Shelf is in the middle of the unified desktop (right side of left display), spills onto right display.

See the attached image for the right side shelf in unified mode on linux-chromeos.
 
unified_shelf_on_right.png
46.5 KB View Download
Owner: afakhry@chromium.org
I think we should place this on the right edge in this case.
Status: Assigned (was: Available)
Cc: ovanieva@chromium.org newcomer@chromium.org omrilio@chromium.org
I think we also need to define the launcher behavior in Unified Mode (cc: ovanieva@, newcomer@, and omrilio@)

(See attached video).
This is a 4x4 display matrix in unified mode. See where the shelf is positioned and how big it is.
Now see where the launcher starts showing?

After some discussion with oshima@, we can do the following in unified mode:
- Bottom shelf alignment, position shelf in the bottom left display of the matrix.
- Left alignment, position shelf in the top left display of the matrix.
- Right alignment, position shelf in the top right display of the matrix.


unified_shelf_launcher-2018-10-29_18.28.04.mp4
3.1 MB View Download
Cc: sgabr...@chromium.org
Should the launcher only take up one full screen? 

Since the analogy with the launcher/shelf is that the launcher grows from the shelf (launcher/shelf should be considered the same surface), should we limit the size of the launcher in this case?
This would seem like the desired behavior yes I wasn't aware of this mode so this is my gut reaction.
WIP fix. Need to write a few tests.
unified_shelf_fix-2018-11-01_18.25.03.mp4
2.8 MB View Download
Project Member

Comment 7 by bugdroid1@chromium.org, Nov 6

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

commit 1ac713b7c88f9a4ffb2f54db3724ec7453280551
Author: Ahmed Fakhry <afakhry@chromium.org>
Date: Tue Nov 06 18:57:46 2018

Fix shelf positioning in Unified Desktop mode

This CL changes the default behavior from always
placing the shelf on the top-left display in the
unified matrix, to placing it according to its
aligment:
- "left" alignment -> top-left display in the matrix.
- "right" alignment -> top-right display in the matrix.
- "bottom" alignment -> bottom-left display in the matrix.

This CL also fixes the shelf positioning when changing the
unified display zoom (the unified scale factor was not taken
into consideration).

BUG= 897771 
TEST=Modified tests.

Change-Id: Idf7a364ce40340e69a1dbb8785318725ea1aa890
Reviewed-on: https://chromium-review.googlesource.com/c/1315711
Reviewed-by: Mitsuru Oshima <oshima@chromium.org>
Reviewed-by: Steven Bennetts <stevenjb@chromium.org>
Commit-Queue: Ahmed Fakhry <afakhry@chromium.org>
Cr-Commit-Position: refs/heads/master@{#605765}
[modify] https://crrev.com/1ac713b7c88f9a4ffb2f54db3724ec7453280551/ash/display/cros_display_config.cc
[modify] https://crrev.com/1ac713b7c88f9a4ffb2f54db3724ec7453280551/ash/display/display_configuration_controller.cc
[modify] https://crrev.com/1ac713b7c88f9a4ffb2f54db3724ec7453280551/ash/display/display_configuration_controller.h
[modify] https://crrev.com/1ac713b7c88f9a4ffb2f54db3724ec7453280551/ash/display/display_manager_unittest.cc
[modify] https://crrev.com/1ac713b7c88f9a4ffb2f54db3724ec7453280551/ash/screen_util.cc
[modify] https://crrev.com/1ac713b7c88f9a4ffb2f54db3724ec7453280551/ash/screen_util_unittest.cc
[modify] https://crrev.com/1ac713b7c88f9a4ffb2f54db3724ec7453280551/chrome/browser/extensions/system_display/display_info_provider_chromeos_unittest.cc
[modify] https://crrev.com/1ac713b7c88f9a4ffb2f54db3724ec7453280551/ui/display/manager/display_manager.cc
[modify] https://crrev.com/1ac713b7c88f9a4ffb2f54db3724ec7453280551/ui/display/manager/display_manager.h
[modify] https://crrev.com/1ac713b7c88f9a4ffb2f54db3724ec7453280551/ui/display/unified_desktop_utils.h

Labels: M-72
Status: Fixed (was: Assigned)

Sign in to add a comment