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 | 25 | multiSelector: false, |
26 | 26 | |
27 | 27 | maxWinNumber : 5, |
28 | - //original image values : 700, 987; 987, 700 | |
29 | 28 | imgOffset : { x : 70, y : 85 }, |
30 | 29 | winSize : { |
31 | 30 | landscape : { width : 0, height : 0 }, |
... | ... | @@ -34,8 +33,8 @@ Ext.define('amdaDesktop.InteractivePlotMgr', { |
34 | 33 | }, |
35 | 34 | |
36 | 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 | 40 | maxWinNumber : 5, |
... | ... | @@ -240,8 +239,8 @@ Ext.define('amdaDesktop.InteractivePlotMgr', { |
240 | 239 | var sizeImg = Ext.clone(size); |
241 | 240 | var interactivePlotMgr = myDesktopApp.getLoadedModule(myDesktopApp.dynamicModules.interactive_plot.id); |
242 | 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 | 246 | panelResult.panelImage.setSrc('data/'+sessionID +'/RES/'+resultId+'/'+ outputName +'.png'); | ... | ... |