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:
parent
408aa82a13
commit
975a7dd89d
@ -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) {
|
||||
|
@ -28,7 +28,7 @@
|
||||
using namespace BPrivate;
|
||||
|
||||
|
||||
const float kMaxTabWidth = 135.;
|
||||
const float kMaxTabWidth = 165.;
|
||||
|
||||
|
||||
bool
|
||||
|
Loading…
x
Reference in New Issue
Block a user