diff --git a/o2web/source/x_component_cms_FormDesigner/Main.js b/o2web/source/x_component_cms_FormDesigner/Main.js index d7da39fcfb0a7257b0c918280c081f54d8e38ab3..06cf17ac0401f90e431cfe160f6f2f563d4e238f 100644 --- a/o2web/source/x_component_cms_FormDesigner/Main.js +++ b/o2web/source/x_component_cms_FormDesigner/Main.js @@ -216,21 +216,27 @@ MWF.xApplication.cms.FormDesigner.Main = new Class({ }.bind(this)); this.loadForm(); - if (this.toolbarContentNode){ - this.setScrollBar(this.toolbarContentNode, null, { - "V": {"x": 0, "y": 0}, - "H": {"x": 0, "y": 0} + MWF.require("MWF.widget.ScrollBar", function(){ + new MWF.widget.ScrollBar(this.propertyDomScrollArea, { + "style":"default", "where": "before", "distance": 30, "friction": 4, "indent": false, "axis": {"x": false, "y": true} }); - //this.setScrollBar(this.propertyDomScrollArea, "form_property", { - // "V": {"x": 0, "y": 0}, - // "H": {"x": 0, "y": 0} - //}); - MWF.require("MWF.widget.ScrollBar", function(){ - new MWF.widget.ScrollBar(this.propertyDomScrollArea, { - "style":"default", "where": "before", "distance": 30, "friction": 4, "indent": false, "axis": {"x": false, "y": true} - }); - }.bind(this)); - } + }.bind(this)); + + // if (this.toolbarContentNode){ + // this.setScrollBar(this.toolbarContentNode, null, { + // "V": {"x": 0, "y": 0}, + // "H": {"x": 0, "y": 0} + // }); + // //this.setScrollBar(this.propertyDomScrollArea, "form_property", { + // // "V": {"x": 0, "y": 0}, + // // "H": {"x": 0, "y": 0} + // //}); + // MWF.require("MWF.widget.ScrollBar", function(){ + // new MWF.widget.ScrollBar(this.propertyDomScrollArea, { + // "style":"default", "where": "before", "distance": 30, "friction": 4, "indent": false, "axis": {"x": false, "y": true} + // }); + // }.bind(this)); + // } }, initOptions: function(){ this.toolsData = null; diff --git a/o2web/source/x_component_process_Xform/$ElModule.js b/o2web/source/x_component_process_Xform/$ElModule.js index c9a0cbf64ff2d75f3bad2e9c4411a080cc53354f..3229773e59364068649b1ca5e54fd8f2d56f5bcc 100644 --- a/o2web/source/x_component_process_Xform/$ElModule.js +++ b/o2web/source/x_component_process_Xform/$ElModule.js @@ -67,7 +67,7 @@ o2.xApplication.process.Xform.$ElModule = MWF.APP$ElModule = new Class( this.node.appendHTML(this._createElementHtml(), "before"); var input = this.node.getPrevious(); - //this.node.destroy(); + this.node.destroy(); this.node = input; this.node.set({ "id": this.json.id,