diff --git a/js/app/views/ParamArgumentsPlug.js b/js/app/views/ParamArgumentsPlug.js index cda4c43..a5b45f1 100644 --- a/js/app/views/ParamArgumentsPlug.js +++ b/js/app/views/ParamArgumentsPlug.js @@ -59,7 +59,9 @@ Ext.define('amdaUI.ParamArgumentsPlug', { /** * creation of the window */ - show : function(prefixId, paramRequestObject) { + show : function(prefixId, paramRequestObject) { + var me = this; + if (!this.win) { this.win = new Ext.Window({ @@ -82,7 +84,10 @@ Ext.define('amdaUI.ParamArgumentsPlug', { beforeclose: function() { this.hostCmp.setDisabled(false); Ext.PluginManager.unregister(this); - } + } , + show: function() { + me.win.setHeight(me.computeHeight()); + } }, getConstrainVector: function(constrainTo){ var me = this; @@ -103,7 +108,6 @@ Ext.define('amdaUI.ParamArgumentsPlug', { //Work with a clone of the request para object. this.paramObject = paramRequestObject; var workingParamObject = this.paramObject.copy(); - var me = this; this.paramArgs.editParameter(workingParamObject, this.hostCmp, function() { me.win.setHeight(me.computeHeight()); }); -- libgit2 0.21.2