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:
@@ -382,10 +382,10 @@ SATDecorator::_LayoutTabItems(const BRect& tabRect)
|
|||||||
size = (fTabRect.right - fCloseRect.right) - fTextOffset * 2 + inset;
|
size = (fTabRect.right - fCloseRect.right) - fTextOffset * 2 + inset;
|
||||||
}
|
}
|
||||||
uint8 truncateMode = B_TRUNCATE_MIDDLE;
|
uint8 truncateMode = B_TRUNCATE_MIDDLE;
|
||||||
if (fStackedMode)
|
|
||||||
truncateMode = B_TRUNCATE_END;
|
|
||||||
|
|
||||||
if (fStackedMode) {
|
if (fStackedMode) {
|
||||||
|
if (fStackedTabLength < 100)
|
||||||
|
truncateMode = B_TRUNCATE_END;
|
||||||
float titleWidth = fDrawState.Font().StringWidth(Title(),
|
float titleWidth = fDrawState.Font().StringWidth(Title(),
|
||||||
BString(Title()).Length());
|
BString(Title()).Length());
|
||||||
if (size < titleWidth) {
|
if (size < titleWidth) {
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
using namespace BPrivate;
|
using namespace BPrivate;
|
||||||
|
|
||||||
|
|
||||||
const float kMaxTabWidth = 135.;
|
const float kMaxTabWidth = 165.;
|
||||||
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
|||||||
Reference in New Issue
Block a user