diff --git a/editor/js/ui/common/editableList.js b/editor/js/ui/common/editableList.js index 8c8163c59..c13788f2f 100644 --- a/editor/js/ui/common/editableList.js +++ b/editor/js/ui/common/editableList.js @@ -82,7 +82,6 @@ that.addItem({}); }); } - console.log(this.element.prop('id')); if (this.element.css("position") === "absolute") { ["top","left","bottom","right"].forEach(function(s) { var v = that.element.css(s); @@ -90,7 +89,6 @@ that.topContainer.css(s,v); that.uiContainer.css(s,"0"); that.element.css(s,'auto'); - console.log(s,v); } }) this.element.css("position","static"); diff --git a/editor/js/ui/utils.js b/editor/js/ui/utils.js index 89ab8c234..25542bfb1 100644 --- a/editor/js/ui/utils.js +++ b/editor/js/ui/utils.js @@ -536,6 +536,17 @@ RED.utils = (function() { } } else if (subElements[targetPath] && subElements[targetPath].prop('expand') ) { subElements[targetPath].prop('expand')(targetPath,state); + } else { + for (var p in subElements) { + if (subElements.hasOwnProperty(p)) { + if (targetPath.indexOf(p) === 0) { + if (subElements[p].prop('expand') ) { + subElements[p].prop('expand')(targetPath,state); + } + break; + } + } + } } }}); }