Chromium Code Reviews| Index: chrome/browser/ui/views/frame/opaque_browser_frame_view.cc |
| =================================================================== |
| --- chrome/browser/ui/views/frame/opaque_browser_frame_view.cc (revision 104341) |
| +++ chrome/browser/ui/views/frame/opaque_browser_frame_view.cc (working copy) |
| @@ -302,6 +302,17 @@ |
| close_button_->GetMinimumSize().width(); |
| #endif |
| min_size.set_width(std::max(min_size.width(), min_titlebar_width)); |
| + |
| + // Ensure that the minimum width is enough to hold a tab strip with minimum |
| + // width at its usual insets. |
| + if (browser_view_->IsTabStripVisible()) { |
| + AbstractTabStripView* tabstrip = browser_view_->tabstrip(); |
| + int min_tabstrip_width = tabstrip->GetMinimumSize().width(); |
| + int min_tabstrip_area_width = |
| + width() - GetBoundsForTabStrip(tabstrip).width() + min_tabstrip_width; |
|
Peter Kasting
2011/10/06 20:31:33
This worries me because it is flexible. For examp
|
| + min_size.set_width(std::max(min_tabstrip_area_width, min_size.width())); |
| + } |
| + |
| return min_size; |
| } |