Commit 6ee7dbf13706c15b3b3f039c28a0c5eebf779cd3

Authored by Elena.Budnik
2 parents 892f7411 e13ef068

Merge branch 'master' of https://gitlab.irap.omp.eu/CDPP/AMDA_IHM

Merge with last benjamin commit
Showing 1 changed file with 7 additions and 3 deletions   Show diff stats
js/app/views/ParamArgumentsPlug.js
... ... @@ -59,7 +59,9 @@ Ext.define('amdaUI.ParamArgumentsPlug', {
59 59 /**
60 60 * creation of the window
61 61 */
62   - show : function(prefixId, paramRequestObject) {
  62 + show : function(prefixId, paramRequestObject) {
  63 + var me = this;
  64 +
63 65 if (!this.win)
64 66 {
65 67 this.win = new Ext.Window({
... ... @@ -82,7 +84,10 @@ Ext.define('amdaUI.ParamArgumentsPlug', {
82 84 beforeclose: function() {
83 85 this.hostCmp.setDisabled(false);
84 86 Ext.PluginManager.unregister(this);
85   - }
  87 + } ,
  88 + show: function() {
  89 + me.win.setHeight(me.computeHeight());
  90 + }
86 91 },
87 92 getConstrainVector: function(constrainTo){
88 93 var me = this;
... ... @@ -103,7 +108,6 @@ Ext.define('amdaUI.ParamArgumentsPlug', {
103 108 //Work with a clone of the request para object.
104 109 this.paramObject = paramRequestObject;
105 110 var workingParamObject = this.paramObject.copy();
106   - var me = this;
107 111 this.paramArgs.editParameter(workingParamObject, this.hostCmp, function() {
108 112 me.win.setHeight(me.computeHeight());
109 113 });
... ...