From 975a7dd89d85b03254043efb3438b935e2ff693b Mon Sep 17 00:00:00 2001 From: Clemens Zeidler Date: Sat, 9 Oct 2010 20:57:15 +0000 Subject: [PATCH] Make the stacked tab length a bit bigger and only cut the string at the end if the tab becomes small. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38907 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/decorators/SATDecorator/SATDecorator.cpp | 4 ++-- src/add-ons/decorators/SATDecorator/Stacking.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/add-ons/decorators/SATDecorator/SATDecorator.cpp b/src/add-ons/decorators/SATDecorator/SATDecorator.cpp index 8cdeb6a0c4..18e1d1fe63 100644 --- a/src/add-ons/decorators/SATDecorator/SATDecorator.cpp +++ b/src/add-ons/decorators/SATDecorator/SATDecorator.cpp @@ -382,10 +382,10 @@ SATDecorator::_LayoutTabItems(const BRect& tabRect) size = (fTabRect.right - fCloseRect.right) - fTextOffset * 2 + inset; } uint8 truncateMode = B_TRUNCATE_MIDDLE; - if (fStackedMode) - truncateMode = B_TRUNCATE_END; if (fStackedMode) { + if (fStackedTabLength < 100) + truncateMode = B_TRUNCATE_END; float titleWidth = fDrawState.Font().StringWidth(Title(), BString(Title()).Length()); if (size < titleWidth) { diff --git a/src/add-ons/decorators/SATDecorator/Stacking.cpp b/src/add-ons/decorators/SATDecorator/Stacking.cpp index 6bec1981ee..6fbab98a56 100644 --- a/src/add-ons/decorators/SATDecorator/Stacking.cpp +++ b/src/add-ons/decorators/SATDecorator/Stacking.cpp @@ -28,7 +28,7 @@ using namespace BPrivate; -const float kMaxTabWidth = 135.; +const float kMaxTabWidth = 165.; bool