Commit f17b2e358a5997834fff06ada172ae3d11c091b3

Authored by Hacene SI HADJ MOHAND
1 parent 6e0fdbf9

solving 8782

Showing 1 changed file with 8 additions and 0 deletions   Show diff stats
js/app/models/PlotObjects/PlotPanelObject.js
@@ -342,6 +342,8 @@ Ext.define('amdaPlotObj.PlotPanelObject', { @@ -342,6 +342,8 @@ Ext.define('amdaPlotObj.PlotPanelObject', {
342 if (success) { 342 if (success) {
343 if (emptyPanel && !me.isComponent) 343 if (emptyPanel && !me.isComponent)
344 me.changePlotType(data.panel.plotType); 344 me.changePlotType(data.panel.plotType);
  345 + if(data.panel.isotropic)
  346 + me.setIsotropic(data.panel.isotropic);
345 347
346 if (data.draw && !me.isComponent) { 348 if (data.draw && !me.isComponent) {
347 availableDrawingObjects = recs[0].getAvailableDrawingObjectByPlotType(me.get('panel-plot-type')); 349 availableDrawingObjects = recs[0].getAvailableDrawingObjectByPlotType(me.get('panel-plot-type'));
@@ -495,6 +497,12 @@ Ext.define('amdaPlotObj.PlotPanelObject', { @@ -495,6 +497,12 @@ Ext.define('amdaPlotObj.PlotPanelObject', {
495 return true; 497 return true;
496 }, 498 },
497 499
  500 + setIsotropic: function (isotropic){
  501 + if(this.get('panel-plot-type') != 'xyPlot')
  502 + return;
  503 + this.set('panel-scatter-isotropic', isotropic);
  504 + },
  505 +
498 changePlotType: function(plotType) { 506 changePlotType: function(plotType) {
499 if (plotType == this.get('panel-plot-type')) 507 if (plotType == this.get('panel-plot-type'))
500 return; 508 return;