Commit 2843351a5999fede7082d2adbd15f24622ebefe6
1 parent
b73637cc
Exists in
master
and in
34 other branches
Correct bug for this the Zoom window will each be recreated
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
js/app/views/PlotComponents/PlotZoomPlug.js
... | ... | @@ -131,7 +131,7 @@ Ext.define('amdaPlotComp.PlotZoomPlug', { |
131 | 131 | */ |
132 | 132 | show: function (interactiveId, zoomType, panelId, isPlotFunction_ = false) { |
133 | 133 | this.isPlotFunction = isPlotFunction_; |
134 | - if (!this.win) { | |
134 | + if (this.win) { this.close() }; | |
135 | 135 | this.win = new Ext.Window({ |
136 | 136 | id: 'plot-zoom-win-' + this.hostCmp.ownerCt.getId(), // Plot window ID |
137 | 137 | width: 250, |
... | ... | @@ -163,7 +163,7 @@ Ext.define('amdaPlotComp.PlotZoomPlug', { |
163 | 163 | this.win.on('destroy', this.onDestroy, this); |
164 | 164 | |
165 | 165 | Ext.PluginManager.register(this); |
166 | - } | |
166 | + | |
167 | 167 | this.interactiveId = interactiveId; |
168 | 168 | this.updateWinByType(zoomType, panelId); |
169 | 169 | this.win.show(); |
... | ... | @@ -437,7 +437,7 @@ Ext.define('amdaPlotComp.PlotZoomPlug', { |
437 | 437 | ], |
438 | 438 | fbar: [ |
439 | 439 | { |
440 | - text: me.isPlotFunction ? "Apply" : 'Apply Zoom', | |
440 | + text: me.isPlotFunction ? "Apply The Fct" : 'Apply Zoom', | |
441 | 441 | width: 100, |
442 | 442 | scope: this, |
443 | 443 | handler: function () { |
... | ... |