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:
parent
27d3e165b0
commit
0f49a11228
@ -66,7 +66,7 @@ RED.palette = (function() {
|
|||||||
var lineHeight = 20;
|
var lineHeight = 20;
|
||||||
var portHeight = 10;
|
var portHeight = 10;
|
||||||
|
|
||||||
var words = label.split(" ");
|
var words = label.split(/[ -]/);
|
||||||
|
|
||||||
var displayLines = [];
|
var displayLines = [];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user