Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(564)

Issue 2175833002: AdjustBoundsToEnsureMinimumWindowVisibility may cause unwanted shift if window dimension is small (Closed)

Created:
4 years, 5 months ago by Qiang(Joe) Xu
Modified:
4 years, 3 months ago
CC:
chromium-reviews, kalyank, sadrul, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

AdjustBoundsToEnsureMinimumWindowVisibility may cause unwanted shift if window dimension is small Status bubble height may be smaller than kMinimumOnScreenArea, which is 25. The current logic in AdjustBoundsToEnsureWindowVisibility fails in this case. For example, bounds->y() > visible_area.bottom() - min_height is satisfied when status bubble (height 22) touches the bottom of work area. If we adjust bounds using bounds->set_y(visible_area.bottom() - min_height), it will cause unwanted white space. BUG=624806 TEST=Device test, fixing the reporter's bug. The bug in comment 8 is a different bug and will be dealt with later by filing another bug with it. add unittest coverage Committed: https://crrev.com/e17639909d925fcde4f0c3425c261d166036aa5d Cr-Commit-Position: refs/heads/master@{#414782}

Patch Set 1 #

Total comments: 2

Patch Set 2 : StatusBubbleView ignored_by_shelf #

Patch Set 3 : add unittest #

Patch Set 4 : ensure window abuts the bottom of screen #

Total comments: 1

Patch Set 5 : AdjustBoundsToEnsureMinimumWindowVisibility #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -4 lines) Patch
M ash/common/wm/window_positioning_utils.cc View 1 2 3 4 1 chunk +7 lines, -4 lines 0 comments Download
M ash/wm/window_util_unittest.cc View 1 2 3 4 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 50 (31 generated)
Qiang(Joe) Xu
Hi sky@, skuhne@, could you help review on this? tks.
4 years, 5 months ago (2016-07-22 17:04:14 UTC) #4
sky
https://codereview.chromium.org/2175833002/diff/1/chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc File chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc (right): https://codereview.chromium.org/2175833002/diff/1/chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc#newcode382 chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc:382: // The user shelf transition animation may cause browser's ...
4 years, 5 months ago (2016-07-25 15:23:40 UTC) #9
Qiang(Joe) Xu
https://codereview.chromium.org/2175833002/diff/1/chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc File chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc (right): https://codereview.chromium.org/2175833002/diff/1/chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc#newcode382 chrome/browser/ui/ash/multi_user/user_switch_animator_chromeos.cc:382: // The user shelf transition animation may cause browser's ...
4 years, 5 months ago (2016-07-25 21:19:36 UTC) #10
Mr4D (OOO till 08-26)
Just checking - is this patch still valid?
4 years, 4 months ago (2016-08-15 20:58:45 UTC) #11
Qiang(Joe) Xu
On 2016/08/15 20:58:45, Mr4D wrote: > Just checking - is this patch still valid? No ...
4 years, 4 months ago (2016-08-15 21:08:05 UTC) #12
Qiang(Joe) Xu
Hi All, here comes the update which is described in description. I think now only ...
4 years, 4 months ago (2016-08-23 16:51:14 UTC) #18
sky
Nice! How about test coverage?
4 years, 4 months ago (2016-08-23 17:30:25 UTC) #19
Qiang(Joe) Xu
On 2016/08/23 17:30:25, sky wrote: > Nice! How about test coverage? Hi sky, I think ...
4 years, 4 months ago (2016-08-24 00:01:36 UTC) #20
sky
As the fix is entirely in ash I would expect the test coverage there. It's ...
4 years, 4 months ago (2016-08-24 02:08:13 UTC) #21
Qiang(Joe) Xu
Hi Scott, unittest is added. I test one case which is the same root reason.
4 years, 4 months ago (2016-08-24 23:59:21 UTC) #22
sky
+oshima https://codereview.chromium.org/2175833002/diff/60001/ash/common/wm/default_state.cc File ash/common/wm/default_state.cc (right): https://codereview.chromium.org/2175833002/diff/60001/ash/common/wm/default_state.cc#newcode480 ash/common/wm/default_state.cc:480: !window_state->ignored_by_shelf()) ignored_by_shelf means: // True if the window ...
4 years, 3 months ago (2016-08-25 15:19:30 UTC) #24
oshima
On 2016/08/25 15:19:30, sky wrote: > +oshima > > https://codereview.chromium.org/2175833002/diff/60001/ash/common/wm/default_state.cc > File ash/common/wm/default_state.cc (right): > ...
4 years, 3 months ago (2016-08-25 17:10:54 UTC) #25
Qiang(Joe) Xu
New patch is part of the fix in the crbug.com/624806. AdjustBoundsToEnsureMinimumWindowVisibility may cause problem when ...
4 years, 3 months ago (2016-08-26 17:01:41 UTC) #41
oshima
lgtm
4 years, 3 months ago (2016-08-26 17:04:15 UTC) #42
Mr4D (OOO till 08-26)
lgtm
4 years, 3 months ago (2016-08-26 17:57:55 UTC) #43
sky
LGTM
4 years, 3 months ago (2016-08-26 19:32:58 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2175833002/100001
4 years, 3 months ago (2016-08-26 19:35:23 UTC) #46
commit-bot: I haz the power
Committed patchset #5 (id:100001)
4 years, 3 months ago (2016-08-26 19:41:42 UTC) #48
commit-bot: I haz the power
4 years, 3 months ago (2016-08-26 19:45:15 UTC) #50
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/e17639909d925fcde4f0c3425c261d166036aa5d
Cr-Commit-Position: refs/heads/master@{#414782}

Powered by Google App Engine
This is Rietveld 408576698