| Index: chrome/browser/ui/views/location_bar/ev_bubble_view.cc
|
| diff --git a/chrome/browser/ui/views/location_bar/ev_bubble_view.cc b/chrome/browser/ui/views/location_bar/ev_bubble_view.cc
|
| index ad5c27afcdf7db1b339b908ed4d871b0d01db7fd..4698cce4a0f2a7c9642da99ee43e49221322bdb7 100644
|
| --- a/chrome/browser/ui/views/location_bar/ev_bubble_view.cc
|
| +++ b/chrome/browser/ui/views/location_bar/ev_bubble_view.cc
|
| @@ -28,7 +28,7 @@ gfx::Size EVBubbleView::GetMinimumSize() {
|
| // Height will be ignored by the LocationBarView.
|
| gfx::Size minimum(GetPreferredSize());
|
| static const int kMinBubbleWidth = 150;
|
| - minimum.SetToMax(gfx::Size(kMinBubbleWidth, 0));
|
| + minimum.SetToMin(gfx::Size(kMinBubbleWidth, minimum.height()));
|
| return minimum;
|
| }
|
|
|
| @@ -48,3 +48,11 @@ void EVBubbleView::OnGestureEvent(ui::GestureEvent* event) {
|
| event->SetHandled();
|
| }
|
| }
|
| +
|
| +gfx::Size EVBubbleView::GetMinimumSizeForLabelText(
|
| + const base::string16& text) const {
|
| + gfx::Size minimum(GetSizeForLabelText(text));
|
| + static const int kMinBubbleWidth = 150;
|
| + minimum.SetToMin(gfx::Size(kMinBubbleWidth, minimum.height()));
|
| + return minimum;
|
| +}
|
|
|