Link Node - scroll to current flow in node list

This commit is contained in:
Nick O'Leary
2019-02-06 15:38:35 +00:00
parent 6e944485f0
commit 37b3601c47
3 changed files with 22 additions and 4 deletions

View File

@@ -54,7 +54,7 @@
flowMap[activeSubflow.id] = {
id: activeSubflow.id,
class: 'palette-header',
label: "Subflow : "+(activeSubflow.name || activeSubflow.id),
label: "Subflow : "+(activeSubflow.name || activeSubflow.id)+(node.z===ws.id ? " *":""),
expanded: true,
children: []
};
@@ -64,8 +64,8 @@
flowMap[ws.id] = {
id: ws.id,
class: 'palette-header',
label: (ws.label || ws.id),
expanded: ws.id === node.z,
label: (ws.label || ws.id)+(node.z===ws.id ? " *":""),
expanded: true,
children: []
}
flows.push(flowMap[ws.id])
@@ -88,7 +88,10 @@
}
});
flows = flows.filter(function(f) { return f.children.length > 0 })
treeList.treeList('data',flows)
treeList.treeList('data',flows);
setTimeout(function() {
treeList.treeList('show',node.z);
},100);
}
function resizeNodeList() {