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
This commit is contained in:
parent
c5efa2c0b9
commit
ac09a47296
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user