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
1 changed files with 1 additions and 1 deletions

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 = [];