From 0f49a112282cd44ce19fe4c67894d8a95322964c Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Sat, 12 Mar 2016 22:41:23 +0000 Subject: [PATCH] Split palette labels on spaces and hypens when laying out --- editor/js/ui/palette.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/editor/js/ui/palette.js b/editor/js/ui/palette.js index 680d53932..789502de8 100644 --- a/editor/js/ui/palette.js +++ b/editor/js/ui/palette.js @@ -66,7 +66,7 @@ RED.palette = (function() { var lineHeight = 20; var portHeight = 10; - var words = label.split(" "); + var words = label.split(/[ -]/); var displayLines = [];