Improve handling of long labels in TreeList

This commit is contained in:
Nick O'Leary
2021-10-08 15:30:43 +01:00
parent cdfeba0b82
commit 154d3842a8
3 changed files with 5 additions and 0 deletions

View File

@@ -537,6 +537,7 @@
var labelPaddingWidth = (item.gutter ? item.gutter[0].offsetWidth + 2 : 0) + (depth * 20)
item.treeList.labelPadding = $('<span>').css({
display: "inline-block",
"flex-shrink": 0,
width: labelPaddingWidth+'px'
}).appendTo(label);