From ac09a4729657d4947422933153cf31a6ae9e27b0 Mon Sep 17 00:00:00 2001 From: leavengood Date: Tue, 28 Dec 2010 05:07:06 +0000 Subject: [PATCH] Make the max tab width always 300px instead of being proportional to the label text. I think a consistent tab size is more important. Also made the minimum a little smaller (60px.) git-svn-id: http://svn.haiku-os.org/webpositive/webkit/trunk@559 94f232f2-1747-11df-bad5-a5bfde151594 --- src/apps/webpositive/tabview/TabView.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/apps/webpositive/tabview/TabView.cpp b/src/apps/webpositive/tabview/TabView.cpp index bc5e2a6703..3bb78ec185 100644 --- a/src/apps/webpositive/tabview/TabView.cpp +++ b/src/apps/webpositive/tabview/TabView.cpp @@ -67,7 +67,7 @@ BSize TabView::MinSize() { BSize size(MaxSize()); - size.width = 100.0f; + size.width = 60.0f; return size; } @@ -83,8 +83,7 @@ BSize TabView::MaxSize() { float extra = be_control_look->DefaultLabelSpacing(); - float labelWidth = fContainerView->StringWidth(fLabel.String()) + 2 * extra; - labelWidth = min_c(300.0f, labelWidth); + float labelWidth = 300.0f; return BSize(labelWidth, _LabelHeight() + extra); }