diff --git a/js/app/views/PlotComponents/PlotResultImage.js b/js/app/views/PlotComponents/PlotResultImage.js index c73f32a..06761ff 100644 --- a/js/app/views/PlotComponents/PlotResultImage.js +++ b/js/app/views/PlotComponents/PlotResultImage.js @@ -21,10 +21,10 @@ Ext.define('amdaPlotComp.PlotResultImage', { verticalCursor : null, horizontalCursor : null, - firstVerticalMarker : null, - secondVerticalMarker : null, - firstVerticalMarker : null, - secondVerticalMarker : null, + firstVerticalMarker : null, + secondVerticalMarker : null, + firstHorizontalMarker : null, + secondHorizontalMarker : null, showVerticalCursor : true, showHorizontalCursor : true, @@ -223,4 +223,4 @@ Ext.define('amdaPlotComp.PlotResultImage', { Ext.apply (this , Ext.apply (arguments, myConf)); } -}); \ No newline at end of file +}); diff --git a/js/app/views/PlotTabResultUI.js b/js/app/views/PlotTabResultUI.js index 219095f..d7d06e4 100644 --- a/js/app/views/PlotTabResultUI.js +++ b/js/app/views/PlotTabResultUI.js @@ -75,6 +75,7 @@ Ext.define('amdaUI.PlotTabResultUI', { return; var panelContext = amdaPlotComp.PlotContextManager.getPanelById(this.crtContext, panelId); + var size = this.getImageSize(); var me = this; Ext.each(panelContext.plotArea.axes, function (axis) { @@ -147,7 +148,7 @@ Ext.define('amdaUI.PlotTabResultUI', { handler : function(item, e) { zoomPlugin.show(me.tabId, axis.id, panelContext.id); zoomPlugin.resetMinMaxValue(); - me.panelImage.startZoom(true, me.toPixelOnResultImage(panelContext.y), me.toPixelOnResultImage(panelContext.height), onMinTimeSelection, onMaxTimeSelection); + me.panelImage.startZoom(true, 0/*me.toPixelOnResultImage(panelContext.y)*/, size.height /*me.toPixelOnResultImage(panelContext.height)*/, onMinTimeSelection, onMaxTimeSelection); }, scope: this }); -- libgit2 0.21.2