diff options
| author | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-10 22:54:01 +0000 |
|---|---|---|
| committer | jrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-10 22:54:01 +0000 |
| commit | 9115e087bd27c51cabda7e04f318f06e932cba1b (patch) | |
| tree | 038ef51749c4a9f6a9b4ed35d5524e57a9b3a38e | |
| parent | 4658b4266fab2d41675d9f26af03938212505ef1 (diff) | |
| download | chromium_src-9115e087bd27c51cabda7e04f318f06e932cba1b.zip chromium_src-9115e087bd27c51cabda7e04f318f06e932cba1b.tar.gz chromium_src-9115e087bd27c51cabda7e04f318f06e932cba1b.tar.bz2 | |
Fix bookmark button padding.
BUG=http://crbug.com/48681
TEST=open bookmark folder. Mouse-over a button to highlight it. zoom
in (e.g. ctrl-scroll-up). Make sure padding on right and left sides
are equal. (Previously we had too much padding on right side).
Review URL: http://codereview.chromium.org/3361014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@59169 0039d316-1c4b-4281-b951-d872f2087c98
| -rw-r--r-- | chrome/browser/cocoa/bookmark_bar_folder_controller.mm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/chrome/browser/cocoa/bookmark_bar_folder_controller.mm b/chrome/browser/cocoa/bookmark_bar_folder_controller.mm index d672f7d..4560fda 100644 --- a/chrome/browser/cocoa/bookmark_bar_folder_controller.mm +++ b/chrome/browser/cocoa/bookmark_bar_folder_controller.mm @@ -385,8 +385,7 @@ const CGFloat kScrollWindowVerticalMargin = 0.0; // Adjust all button widths to be consistent, determine the best size for // the window, and set the window frame. CGFloat windowWidth = - [self adjustButtonWidths] + (2 * bookmarks::kBookmarkVerticalPadding) + - bookmarks::kScrollViewContentWidthMargin; + [self adjustButtonWidths] + (2 * bookmarks::kBookmarkHorizontalPadding); NSPoint newWindowTopLeft = [self windowTopLeftForWidth:windowWidth]; NSSize windowSize = NSMakeSize(windowWidth, windowHeight); windowSize = [scrollView_ convertSize:windowSize toView:nil]; |
