1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Split palette labels on spaces and hypens when laying out

This commit is contained in:
Nick O'Leary 2016-03-12 22:41:23 +00:00
parent 27d3e165b0
commit 0f49a11228

View File

@ -66,7 +66,7 @@ RED.palette = (function() {
var lineHeight = 20;
var portHeight = 10;
var words = label.split(" ");
var words = label.split(/[ -]/);
var displayLines = [];