Commit c45e3428419f02e856bec08b6785d15d26f1463e
1 parent
cfa1d71c
Exists in
master
and in
111 other branches
Set adapted size for plot
Showing
1 changed file
with
4 additions
and
5 deletions
Show diff stats
js/app/controllers/InteractivePlotMgr.js
@@ -25,7 +25,6 @@ Ext.define('amdaDesktop.InteractivePlotMgr', { | @@ -25,7 +25,6 @@ Ext.define('amdaDesktop.InteractivePlotMgr', { | ||
25 | multiSelector: false, | 25 | multiSelector: false, |
26 | 26 | ||
27 | maxWinNumber : 5, | 27 | maxWinNumber : 5, |
28 | - //original image values : 700, 987; 987, 700 | ||
29 | imgOffset : { x : 70, y : 85 }, | 28 | imgOffset : { x : 70, y : 85 }, |
30 | winSize : { | 29 | winSize : { |
31 | landscape : { width : 0, height : 0 }, | 30 | landscape : { width : 0, height : 0 }, |
@@ -34,8 +33,8 @@ Ext.define('amdaDesktop.InteractivePlotMgr', { | @@ -34,8 +33,8 @@ Ext.define('amdaDesktop.InteractivePlotMgr', { | ||
34 | }, | 33 | }, |
35 | 34 | ||
36 | imgSize : { | 35 | imgSize : { |
37 | - landscape : { width : 987, height : 700 }, | ||
38 | - portrait : { width : 700, height : 987 } | 36 | + landscape : { width : 1052, height : 744 }, |
37 | + portrait : { width : 744, height : 1052 } | ||
39 | }, | 38 | }, |
40 | 39 | ||
41 | maxWinNumber : 5, | 40 | maxWinNumber : 5, |
@@ -240,8 +239,8 @@ Ext.define('amdaDesktop.InteractivePlotMgr', { | @@ -240,8 +239,8 @@ Ext.define('amdaDesktop.InteractivePlotMgr', { | ||
240 | var sizeImg = Ext.clone(size); | 239 | var sizeImg = Ext.clone(size); |
241 | var interactivePlotMgr = myDesktopApp.getLoadedModule(myDesktopApp.dynamicModules.interactive_plot.id); | 240 | var interactivePlotMgr = myDesktopApp.getLoadedModule(myDesktopApp.dynamicModules.interactive_plot.id); |
242 | if (interactivePlotMgr) | 241 | if (interactivePlotMgr) |
243 | - panelResult.panelImage.setSize(sizeImg.width-interactivePlotMgr.imgOffset.x, | ||
244 | - sizeImg.height-interactivePlotMgr.imgOffset.y); | 242 | + panelResult.panelImage.setSize(sizeImg.width-amdaDesktop.InteractivePlotMgr.imgOffset.x, |
243 | + sizeImg.height-amdaDesktop.InteractivePlotMgr.imgOffset.y); | ||
245 | } | 244 | } |
246 | 245 | ||
247 | panelResult.panelImage.setSrc('data/'+sessionID +'/RES/'+resultId+'/'+ outputName +'.png'); | 246 | panelResult.panelImage.setSrc('data/'+sessionID +'/RES/'+resultId+'/'+ outputName +'.png'); |