summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/bookmark_bar_controller.mm
diff options
context:
space:
mode:
authorjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-30 16:52:33 +0000
committerjrg@chromium.org <jrg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-30 16:52:33 +0000
commit5212e01fdeee0769f22714bd59f8914da649c1cb (patch)
tree8feaca3e4165137ad4b4f47d676bb23b307a96b7 /chrome/browser/cocoa/bookmark_bar_controller.mm
parent007ec446238760715c9666cb037044a16adb60ac (diff)
downloadchromium_src-5212e01fdeee0769f22714bd59f8914da649c1cb.zip
chromium_src-5212e01fdeee0769f22714bd59f8914da649c1cb.tar.gz
chromium_src-5212e01fdeee0769f22714bd59f8914da649c1cb.tar.bz2
When a button may have grown (e.g. icon loaded), recompute if we need
to show/hide the "off the side" button on the right of the bookmark bar. BUG=http://crbug.com/21887 TEST=Get a bunch of bookmarks with icons. Shrink the window width until the icon JUST BARELY appears. Quit and relaunch Chrome. Make sure "iff the side" button is visible. Review URL: http://codereview.chromium.org/249037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27618 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/bookmark_bar_controller.mm')
-rw-r--r--chrome/browser/cocoa/bookmark_bar_controller.mm3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/bookmark_bar_controller.mm b/chrome/browser/cocoa/bookmark_bar_controller.mm
index b0f07dd..32c718d 100644
--- a/chrome/browser/cocoa/bookmark_bar_controller.mm
+++ b/chrome/browser/cocoa/bookmark_bar_controller.mm
@@ -535,6 +535,9 @@ const CGFloat kBookmarkHorizontalPadding = 1.0;
}
}
}
+ // We may have just crossed a threshold to enable the off-the-side
+ // button.
+ [self checkHideOffTheSideButton];
}
- (IBAction)openBookmarkMenuItem:(id)sender {