diff options
author | dmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-14 07:04:36 +0000 |
---|---|---|
committer | dmaclach@chromium.org <dmaclach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-14 07:04:36 +0000 |
commit | ec102333065bf6a586c004114bdc5b792198ac2e (patch) | |
tree | cf254d72f548993213599cacb5b905352ba93a95 | |
parent | 33cb70a2617d1e8f3ecbcd38717e0df62d99379d (diff) | |
download | chromium_src-ec102333065bf6a586c004114bdc5b792198ac2e.zip chromium_src-ec102333065bf6a586c004114bdc5b792198ac2e.tar.gz chromium_src-ec102333065bf6a586c004114bdc5b792198ac2e.tar.bz2 |
Keeps the "loading..." text centered on the screen when you resize the window.
BUG=27706
TEST=see bug description
Review URL: http://codereview.chromium.org/385118
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32002 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/cocoa/theme_install_bubble_view.mm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/theme_install_bubble_view.mm b/chrome/browser/cocoa/theme_install_bubble_view.mm index 70a7cee..acd5402 100644 --- a/chrome/browser/cocoa/theme_install_bubble_view.mm +++ b/chrome/browser/cocoa/theme_install_bubble_view.mm @@ -154,6 +154,12 @@ void ThemeInstallBubbleView::Show(NSWindow* window) { return size; } +// Update the layout to keep the view centered when the window is resized. +- (void)resizeWithOldSuperviewSize:(NSSize)oldBoundsSize { + [super resizeWithOldSuperviewSize:oldBoundsSize]; + [self layout]; +} + - (void)layout { NSRect bounds = [self bounds]; |