Commit caff798e50c54fc30786b655956169849e52ab9f

Authored by Benjamin Renard
1 parent 7f7d4c70

Fix zoom bar for time axis (#4719)

js/app/views/PlotComponents/PlotResultImage.js
... ... @@ -21,10 +21,10 @@ Ext.define('amdaPlotComp.PlotResultImage', {
21 21 verticalCursor : null,
22 22 horizontalCursor : null,
23 23  
24   - firstVerticalMarker : null,
25   - secondVerticalMarker : null,
26   - firstVerticalMarker : null,
27   - secondVerticalMarker : null,
  24 + firstVerticalMarker : null,
  25 + secondVerticalMarker : null,
  26 + firstHorizontalMarker : null,
  27 + secondHorizontalMarker : null,
28 28  
29 29 showVerticalCursor : true,
30 30 showHorizontalCursor : true,
... ... @@ -223,4 +223,4 @@ Ext.define('amdaPlotComp.PlotResultImage', {
223 223  
224 224 Ext.apply (this , Ext.apply (arguments, myConf));
225 225 }
226   -});
227 226 \ No newline at end of file
  227 +});
... ...
js/app/views/PlotTabResultUI.js
... ... @@ -75,6 +75,7 @@ Ext.define('amdaUI.PlotTabResultUI', {
75 75 return;
76 76  
77 77 var panelContext = amdaPlotComp.PlotContextManager.getPanelById(this.crtContext, panelId);
  78 + var size = this.getImageSize();
78 79  
79 80 var me = this;
80 81 Ext.each(panelContext.plotArea.axes, function (axis) {
... ... @@ -147,7 +148,7 @@ Ext.define('amdaUI.PlotTabResultUI', {
147 148 handler : function(item, e) {
148 149 zoomPlugin.show(me.tabId, axis.id, panelContext.id);
149 150 zoomPlugin.resetMinMaxValue();
150   - me.panelImage.startZoom(true, me.toPixelOnResultImage(panelContext.y), me.toPixelOnResultImage(panelContext.height), onMinTimeSelection, onMaxTimeSelection);
  151 + me.panelImage.startZoom(true, 0/*me.toPixelOnResultImage(panelContext.y)*/, size.height /*me.toPixelOnResultImage(panelContext.height)*/, onMinTimeSelection, onMaxTimeSelection);
151 152 },
152 153 scope: this
153 154 });
... ...