diff --git a/o2web/source/o2_core/o2/xDesktop/Dialog.js b/o2web/source/o2_core/o2/xDesktop/Dialog.js index 08f8a3529f23d86e3fb4fecddeff10c6defed7b9..59ef88fc0d15c5965ddee90c7d15eb057aa90dde 100644 --- a/o2web/source/o2_core/o2/xDesktop/Dialog.js +++ b/o2web/source/o2_core/o2/xDesktop/Dialog.js @@ -268,7 +268,14 @@ o2.xDesktop.Dialog = o2.DDL = new Class({ this.fireEvent("restore"); }, reCenter: function(){ - var size = this.node.getSize(); + var size; + if( this.node.offsetParent === null ){ //如果是隐藏的 + size = this.node.measure(function(){ + return this.getSize(); + }); + }else{ + size = this.node.getSize(); + } if( this.options.positionWidth ){ size.x = parseInt(this.options.positionWidth); diff --git a/o2web/source/x_component_process_Work/Processor.js b/o2web/source/x_component_process_Work/Processor.js index b58f4893ab1fa5bd9bb4bd1184d05124a74daec3..52408b2dc820d7a3017d013dd36039dd2df621fb 100644 --- a/o2web/source/x_component_process_Work/Processor.js +++ b/o2web/source/x_component_process_Work/Processor.js @@ -1539,7 +1539,7 @@ MWF.xApplication.process.Work.Processor = new Class({ //var width = this.node.retrieve("width"); //empowerNode.setStyle( "width", width ); - var width = "880"; + var width = 840; //if( len > 1 ){ // width = "840" //}else{ @@ -1556,9 +1556,17 @@ MWF.xApplication.process.Work.Processor = new Class({ "isResize": false, "content": empowerNode, //"container" : this.node, - "width": width, //600, + "width": width + 40, //600, "height": "auto", //dlgHeight, "mark" : false, + "onPostLoad" : function () { + if( this.nodeWidth ){ + this.node.setStyle("width", this.nodeWidth+"px" ); + } + if( this.nodeHeight ){ + this.node.setStyle("height", this.nodeHeight+"px" ); + } + }, "buttonList": [ { "type" : "ok",