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

Issue 2831323002: Show the drop down menu on the screen the mouse cursor is on (Closed)

Created:
3 years, 8 months ago by Sungmann Cho
Modified:
3 years, 8 months ago
Reviewers:
robliao, Peter Kasting
CC:
chromium-reviews, tfarina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Show the drop down menu on the screen the mouse cursor is on A browser window might be positioned over the edge between two screens. In that case we try to show the drop down menu on the screen the mouse cursor is on, but this does not work as expected on Windows. To achieve this, we obtain the bounds of the screen the mouse cursor is on, and then adjust the position of the drop down menu so that the menu stays within that bounds. But on Windows, we use the bounding rectangle of all display monitors instead of a specific monitor, and this leads to a different outcome than we expected. This CL fixes this problem. BUG=713690 Review-Url: https://codereview.chromium.org/2831323002 Cr-Commit-Position: refs/heads/master@{#466866} Committed: https://chromium.googlesource.com/chromium/src/+/4b19ed9075339cea26ea01d00de0d8e8c1035884

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -3 lines) Patch
M chrome/browser/ui/views/toolbar/toolbar_button.cc View 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 11 (5 generated)
Sungmann Cho
Please take a look. Thanks!
3 years, 8 months ago (2017-04-21 11:31:49 UTC) #2
Peter Kasting
+robliao to review since he would have a better idea than me of whether this ...
3 years, 8 months ago (2017-04-24 18:36:07 UTC) #4
robliao
On 2017/04/24 18:36:07, Peter Kasting (catching up) wrote: > +robliao to review since he would ...
3 years, 8 months ago (2017-04-24 21:51:31 UTC) #5
Sungmann Cho
> However, this now introduces an interesting behavior where if the menu is > activated ...
3 years, 8 months ago (2017-04-25 01:07:17 UTC) #6
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/2831323002/1
3 years, 8 months ago (2017-04-25 01:07:51 UTC) #8
commit-bot: I haz the power
3 years, 8 months ago (2017-04-25 01:56:08 UTC) #11
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/4b19ed9075339cea26ea01d00de0...

Powered by Google App Engine
This is Rietveld 408576698