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:
committed by
Alexandre Deckner
parent
c5efa2c0b9
commit
ac09a47296
@@ -67,7 +67,7 @@ BSize
|
|||||||
TabView::MinSize()
|
TabView::MinSize()
|
||||||
{
|
{
|
||||||
BSize size(MaxSize());
|
BSize size(MaxSize());
|
||||||
size.width = 100.0f;
|
size.width = 60.0f;
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -83,8 +83,7 @@ BSize
|
|||||||
TabView::MaxSize()
|
TabView::MaxSize()
|
||||||
{
|
{
|
||||||
float extra = be_control_look->DefaultLabelSpacing();
|
float extra = be_control_look->DefaultLabelSpacing();
|
||||||
float labelWidth = fContainerView->StringWidth(fLabel.String()) + 2 * extra;
|
float labelWidth = 300.0f;
|
||||||
labelWidth = min_c(300.0f, labelWidth);
|
|
||||||
return BSize(labelWidth, _LabelHeight() + extra);
|
return BSize(labelWidth, _LabelHeight() + extra);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user