Permalink
Browse files

fix color of left border on addColor

  • Loading branch information...
1 parent d4060df commit 905e0129d7a925861f39a48da281733f66203107 @NicolasRannou NicolasRannou committed Sep 5, 2013
Showing with 6 additions and 1 deletion.
  1. +6 −1 xtk_xdat.gui.js
View
@@ -2317,7 +2317,12 @@ dat.GUI = dat.gui.GUI = (function (css, saveDialogueContents, styleSheet, contro
var li = addRow(gui, container, params.before);
dom.addClass(li, GUI.CLASS_CONTROLLER_ROW);
- dom.addClass(li, typeof controller.getValue());
+
+ if (params.color) {
+ dom.addClass(li, 'string');
+ } else {
+ dom.addClass(li, typeof controller.getValue());
+ }
augmentController(gui, li, controller);

0 comments on commit 905e012

Please sign in to comment.