summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/cocoa/theme_install_bubble_view.mm6
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];