Commit fecd2848eb45f2bc265df04af1b485a3187b0d75

Authored by Nathanael Jourdane
1 parent 67bd4723

Fix panel/grid sizes issue.

js/app/controllers/InteropModule.js
... ... @@ -28,8 +28,8 @@ Ext.define('amdaDesktop.InteropModule', {
28 28 * @cfg {String} window definitions
29 29 * @required
30 30 */
31   - height: 650,
32   - width: 1050,
  31 + // height: 650,
  32 + // width: 1050,
33 33 uiType : 'panelInterop',
34 34 helpTitle :'Help on Interop Module',
35 35 helpFile: 'interopHelp.html',
... ... @@ -436,11 +436,10 @@ Ext.define('amdaDesktop.InteropModule', {
436 436 win = desktop.createWindow({
437 437 id: this.id,
438 438 title:this.title,
439   - layout: 'anchor',
440   - width: 800,
441   - height: 600,
442   - minWidth: 650,
443   - minimizable: false,
  439 + layout: 'fit',
  440 + minWidth: 650,
  441 + minHeight: 350,
  442 + minimizable: false,
444 443 iconCls: this.icon,
445 444 animCollapse:false,
446 445 constrainHeader:true,
... ...
js/app/views/EpnTapUI.js
... ... @@ -406,7 +406,6 @@ Ext.define('amdaUI.EpnTapUI', {
406 406 var myConf = {
407 407 id: 'epntapTab',
408 408 title: 'EPN-TAP',
409   - layout: 'fit',
410 409 items: [{
411 410 xtype: 'container',
412 411 layout: { type: 'vbox', pack: 'start', align: 'stretch'},
... ... @@ -585,8 +584,7 @@ Ext.define('amdaUI.EpnTapUI', {
585 584 xtype: 'panel',
586 585 id: 'epnTapGridsPanel',
587 586 layout: 'fit',
588   - height: 440,
589   - region: 'center',
  587 + flex: 1,
590 588 items: [{
591 589 xtype: 'container',
592 590 layout: { type: 'hbox', pack: 'start', align: 'stretch'},
... ...
js/app/views/InteropUI.js
... ... @@ -111,9 +111,10 @@ Ext.define('amdaUI.InteropUI', {
111 111  
112 112 var myConf = {
113 113 plain: true,
  114 + width: 800,
  115 + height: 600,
114 116 activeTab: activeTab,
115 117 defaults: {
116   - autoHeight: true,
117 118 layout: 'fit',
118 119 bodyStyle: { background: '#dfe8f6' }
119 120 },
... ...