DescriptionAdjust 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 #Messages
Total messages: 10 (1 generated)
|