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

Issue 629973002: Adjust bookmark folder menu window if its parent button is partly off-screen to the left. (Closed)

Created:
6 years, 2 months ago by Gaja
Modified:
6 years, 2 months ago
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Adjust bookmark folder menu window if its parent button is partly off-screen to the left. When parent button is partly offscreen to the left, its folder menu's top left aligns with its parent button's top left which makes window not completely to see. This case is handled for right side. This CL applies the same logic for left side. BUG=309668 R=asvitkine@chromium.org TEST= 1. Create a folder on Bookmark Bar with some bookmarks in it 2. Move the chrome window out of the view (left side of the screen), so that the folder is partly off screen 3. Click on the folder to open its menu and observe 4. The folder menu should be seen completely from left Committed: https://crrev.com/27bbd979735c75aae5bbdefabfc9d3f3c811bef8 Cr-Commit-Position: refs/heads/master@{#298738}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Considering reviewer's comments, applying same logic as on the right side. #

Total comments: 4

Patch Set 3 : Addressing comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -2 lines) Patch
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm View 1 2 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
Gaja
PTAL.
6 years, 2 months ago (2014-10-06 12:14:58 UTC) #1
Alexei Svitkine (slow)
https://codereview.chromium.org/629973002/diff/1/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm (right): https://codereview.chromium.org/629973002/diff/1/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm#newcode564 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm:564: if (newWindowTopLeft.x < 0.0) Are you sure this is ...
6 years, 2 months ago (2014-10-06 17:55:28 UTC) #2
Gaja
@asvitkine Please take a look at patch set 2. I have applied the same logic ...
6 years, 2 months ago (2014-10-07 07:41:11 UTC) #3
Alexei Svitkine (slow)
https://codereview.chromium.org/629973002/diff/20001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm (right): https://codereview.chromium.org/629973002/diff/20001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm#newcode538 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm:538: } else { // For left side. Nit: Two ...
6 years, 2 months ago (2014-10-07 18:26:13 UTC) #4
Gaja
Changes in patch set #3. PTAL. https://codereview.chromium.org/629973002/diff/20001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm File chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm (right): https://codereview.chromium.org/629973002/diff/20001/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm#newcode538 chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm:538: } else { ...
6 years, 2 months ago (2014-10-08 03:08:03 UTC) #5
Alexei Svitkine (slow)
lgtm
6 years, 2 months ago (2014-10-08 14:49:40 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/629973002/40001
6 years, 2 months ago (2014-10-08 16:52:27 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 49be3c6a52aa338c70761640cdc0777f9b23c7cf
6 years, 2 months ago (2014-10-08 17:25:23 UTC) #9
commit-bot: I haz the power
6 years, 2 months ago (2014-10-08 17:26:02 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/27bbd979735c75aae5bbdefabfc9d3f3c811bef8
Cr-Commit-Position: refs/heads/master@{#298738}

Powered by Google App Engine
This is Rietveld 408576698