Commit 3ad64fc0aca43d02347fe57566777318583c457e

Authored by Benjamin Renard
1 parent c9071a43

Set plot result windows position

Showing 1 changed file with 6 additions and 0 deletions   Show diff stats
js/app/controllers/PlotModule.js
... ... @@ -94,6 +94,10 @@ Ext.define('amdaDesktop.PlotModule', {
94 94 };
95 95  
96 96 if (winResult == null) {
  97 +
  98 + var x = 50 + tabResult.index * 50;
  99 + var y = 100 + tabResult.index * 20;
  100 +
97 101 //create new result win
98 102 var panelResult = new amdaUI.PlotTabResultUI(plotTabConfig);
99 103  
... ... @@ -104,6 +108,8 @@ Ext.define('amdaDesktop.PlotModule', {
104 108 title : 'Plot '+(tabResult.index+1),
105 109 width : size.width,
106 110 height: size.height,
  111 + x : x,
  112 + y : y,
107 113 layout: 'fit',
108 114 items : [
109 115 panelResult
... ...