New issue
Advanced search Search tips

Issue 766845 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug


Participants' hotlists:
Fixing-touch


Sign in to add a comment

Cros Splitview - Minor issue with divider placement.

Project Member Reported by sammiequon@chromium.org, Sep 19 2017

Issue description

Pretty hard to see with the naked eye, but broke a test. Easier to see if you set the divider size to bigger like 70px & 120px.

1) Snap two windows so the divider shows up.
2) click the divider, and then release

Expected:
Nothing happens

Actual:
Divider shifts to the right, by  divider width / 2 pixels

 
Also, with the thicker divider we can see the divider snapping is off. i.e drag divider to snap at .33 of screen and then drag divider to snap at .67 screen. The left window in the first scenario should equal the right window in the second scenario, but the left window is actually bigger.
Project Member

Comment 2 by bugdroid1@chromium.org, Oct 18 2017

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

commit 4497ce78db1f11796b837b3f415c08951a9bd003
Author: Sammie Quon <sammiequon@google.com>
Date: Wed Oct 18 04:40:04 2017

splitview: Splitview divider not centered.

Fixed in this cl:
1) Snap two windows, and then tap the divider but do not drag. Divider shifts.
2) Drag divider to one third, then to two thirds. Left window in first scenario
is larger than right window in second scenario.
3) Replace some instances of CreateTestWindowWithBounds with CreateTestWindow.

Test: manual, ash_unittests SplitViewControllerTest.*
Bug:  766845 
Change-Id: I37ae535bd1aa881898b723359cfbdb1f3b77d845
Reviewed-on: https://chromium-review.googlesource.com/673905
Commit-Queue: Sammie Quon <sammiequon@chromium.org>
Reviewed-by: Mitsuru Oshima <oshima@chromium.org>
Reviewed-by: Xiaoqian Dai <xdai@chromium.org>
Cr-Commit-Position: refs/heads/master@{#509683}
[modify] https://crrev.com/4497ce78db1f11796b837b3f415c08951a9bd003/ash/wm/overview/window_selector_unittest.cc
[modify] https://crrev.com/4497ce78db1f11796b837b3f415c08951a9bd003/ash/wm/splitview/split_view_controller.cc
[modify] https://crrev.com/4497ce78db1f11796b837b3f415c08951a9bd003/ash/wm/splitview/split_view_controller.h
[modify] https://crrev.com/4497ce78db1f11796b837b3f415c08951a9bd003/ash/wm/splitview/split_view_controller_unittest.cc

Status: Fixed (was: Assigned)

Comment 4 by dchan@chromium.org, Jan 22 2018

Status: Archived (was: Fixed)

Comment 5 by dchan@chromium.org, Jan 23 2018

Status: Fixed (was: Archived)

Sign in to add a comment