|
@@ -997,13 +997,14 @@ var truncateOutput = function (obj) {
|
|
|
name = obj.name || '',
|
|
name = obj.name || '',
|
|
|
type = obj.type || '',
|
|
type = obj.type || '',
|
|
|
output = name.length + type.length,
|
|
output = name.length + type.length,
|
|
|
|
|
+ suffix = '',
|
|
|
trim;
|
|
trim;
|
|
|
-
|
|
|
|
|
if (output > chars) {
|
|
if (output > chars) {
|
|
|
trim = Math.abs((output + 4) - chars); // 4 accounts for ellipsis, spaces, parenthesis
|
|
trim = Math.abs((output + 4) - chars); // 4 accounts for ellipsis, spaces, parenthesis
|
|
|
type = type.slice(0, Math.abs(type.length - trim));
|
|
type = type.slice(0, Math.abs(type.length - trim));
|
|
|
|
|
+ suffix = '…';
|
|
|
}
|
|
}
|
|
|
- return escapeOutput(type) + '…';
|
|
|
|
|
|
|
+ return escapeOutput(type) + suffix;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
function placeResizePanelHandle() {
|
|
function placeResizePanelHandle() {
|