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
This commit is contained in:
Clemens Zeidler 2010-10-09 20:57:15 +00:00
parent 408aa82a13
commit 975a7dd89d
2 changed files with 3 additions and 3 deletions

View File

@ -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) {

View File

@ -28,7 +28,7 @@
using namespace BPrivate;
const float kMaxTabWidth = 135.;
const float kMaxTabWidth = 165.;
bool