Index: ui/views/bubble/tray_bubble_view.cc |
diff --git a/ui/views/bubble/tray_bubble_view.cc b/ui/views/bubble/tray_bubble_view.cc |
index 7ff4112f38a5935db57f813b4ca2813055d72ec6..f6e8ed7a5291e16ab48b375077276b65e18a86e6 100644 |
--- a/ui/views/bubble/tray_bubble_view.cc |
+++ b/ui/views/bubble/tray_bubble_view.cc |
@@ -306,6 +306,14 @@ void TrayBubbleView::SetMaxHeight(int height) { |
SizeToContents(); |
} |
+void TrayBubbleView::SetMinWidth(int width) { |
+ if (params_.bubble_width >= width) |
+ return; |
+ params_.bubble_width = width; |
+ if (GetWidget()) |
+ SizeToContents(); |
+} |
+ |
void TrayBubbleView::SetPaintArrow(bool paint_arrow) { |
bubble_border_->set_paint_arrow(paint_arrow); |
} |