| Index: ui/views/corewm/tooltip_aura.cc
|
| diff --git a/ui/views/corewm/tooltip_aura.cc b/ui/views/corewm/tooltip_aura.cc
|
| index 77bad4060c220f3cba6ed6908830a84f237c7db3..02117a8593d11df38dc6cf2a98e4d8a0ff0d50e8 100644
|
| --- a/ui/views/corewm/tooltip_aura.cc
|
| +++ b/ui/views/corewm/tooltip_aura.cc
|
| @@ -190,7 +190,6 @@ void TooltipAura::SetText(aura::Window* window,
|
| TrimTooltipToFit(label_.font_list(), GetMaxWidth(location), &trimmed_text,
|
| &max_width, &line_count);
|
| label_.SetText(trimmed_text);
|
| - label_.SizeToFit(max_width + label_.GetInsets().width());
|
|
|
| if (!widget_) {
|
| widget_ = CreateTooltipWidget(tooltip_window_);
|
| @@ -198,6 +197,7 @@ void TooltipAura::SetText(aura::Window* window,
|
| widget_->AddObserver(this);
|
| }
|
|
|
| + label_.SizeToFit(max_width + label_.GetInsets().width());
|
| SetTooltipBounds(location, label_.size());
|
|
|
| ui::NativeTheme* native_theme = widget_->GetNativeTheme();
|
|
|