| Index: chrome/browser/ui/views/tabs/tab.cc
|
| diff --git a/chrome/browser/ui/views/tabs/tab.cc b/chrome/browser/ui/views/tabs/tab.cc
|
| index 29841163c87a34db0b811cabbf7030e9156b44aa..353542ad90ade0f9be07f50855e8a9b55793fa49 100644
|
| --- a/chrome/browser/ui/views/tabs/tab.cc
|
| +++ b/chrome/browser/ui/views/tabs/tab.cc
|
| @@ -439,6 +439,7 @@ Tab::Tab(TabController* controller)
|
| title_->SetElideBehavior(gfx::FADE_TAIL);
|
| title_->SetHandlesTooltips(false);
|
| title_->SetAutoColorReadabilityEnabled(false);
|
| + title_->set_collapse_when_hidden(true);
|
| title_->SetText(CoreTabHelper::GetDefaultTitle());
|
| AddChildView(title_);
|
|
|
| @@ -812,7 +813,7 @@ void Tab::Layout() {
|
| kViewSpacing - title_left;
|
| }
|
| gfx::Rect rect(title_left, lb.y(), std::max(title_width, 0), lb.height());
|
| - const int title_height = title_->GetPreferredSize().height();
|
| + const int title_height = title_->GetHeightForWidth(title_width);
|
| if (title_height > rect.height()) {
|
| rect.set_y(lb.y() - (title_height - rect.height()) / 2);
|
| rect.set_height(title_height);
|
|
|