Chromium Code Reviews| Index: chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm |
| diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm |
| index 2eb0880c5f79ed46df5d53ad068412a2a6691471..b9a69193732358a5a71a2154e09db0bd335e38f5 100644 |
| --- a/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm |
| +++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm |
| @@ -558,6 +558,12 @@ NSRect GetFirstButtonFrameForHeight(CGFloat height) { |
| newWindowTopLeft.y = topOfWindow.y + |
| 2 * bookmarks::kBookmarkVerticalPadding; |
| } |
| + |
| + // If parent button was partially off screen to the left, offset it's folder |
| + // menu window horizontally, so that complete menu is seen from the left. |
| + if (newWindowTopLeft.x < 0.0) |
|
Alexei Svitkine (slow)
2014/10/06 17:55:28
Are you sure this is correct?
What if the user ha
Gaja
2014/10/07 07:41:10
Oh, I did not think of it. But I have a doubt here
|
| + newWindowTopLeft.x = 0.0; |
| + |
| return newWindowTopLeft; |
| } |