Merge pull request #3176 from node-red/long-module-names

Improve handling of long labels in TreeList
This commit is contained in:
Nick O'Leary
2021-10-08 15:52:05 +01:00
committed by GitHub
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);