Commit 069584d5935986772d9981cb0cf5d35be06c9cfb

Authored by Elena.Budnik
1 parent 555fc890

scrollbar to cdf/vot panels

Showing 1 changed file with 47 additions and 47 deletions   Show diff stats
js/app/views/MyDataUI.js
... ... @@ -430,7 +430,7 @@ Ext.define('amdaUI.MyDataUI', {
430 430 xtype : 'gridpanel',
431 431 store : store,
432 432 title : fileName,
433   - height: 390,
  433 + height: '100%',
434 434 flex : 2,
435 435 columnLines: true,
436 436 columns: this.columns,
... ... @@ -481,24 +481,24 @@ Ext.define('amdaUI.MyDataUI', {
481 481 }
482 482 }, this);
483 483  
484   - var panelConfig = {
485   - xtype : 'fieldset',
486   - bodyStyle: { background : '#dfe8f6'},
487   - flex : 2,
488   - title: fileName,
489   - items : [{
490   - xtype: 'radiogroup',
491   - cls: 'x-check-group-alt',
492   - columns: 2,
493   - vertical: true,
494   - bodyStyle: { background : '#dfe8f6'},
495   - flex : 2,
496   - items: items
497   - }]
498   - };
  484 + var panelConfig = {
  485 + xtype : 'fieldset',
  486 + bodyStyle: { background : '#dfe8f6'},
  487 + flex : 2,
  488 + autoScroll : true,
  489 + height : '100%',
  490 + title: fileName,
  491 + items : [{
  492 + xtype: 'radiogroup',
  493 + cls: 'x-check-group-alt',
  494 + columns: 2,
  495 + vertical: true,
  496 + items: items
  497 + }]
  498 + };
499 499  
500   - return panelConfig;
501   - },
  500 + return panelConfig;
  501 + },
502 502  
503 503 votPanel : function()
504 504 {
... ... @@ -526,36 +526,36 @@ Ext.define('amdaUI.MyDataUI', {
526 526 else
527 527 myDesktopApp.errorMsg("Cannot find a valid time field!");
528 528  
529   - var panelConfig = {
530   - xtype : 'fieldset',
531   - bodyStyle: { background : '#dfe8f6'},
532   - flex : 2,
533   - title: fileName,
534   - items : [{
535   - xtype: 'radiogroup',
536   - cls: 'x-check-group-alt',
537   - columns: 2,
538   - vertical: true,
539   - bodyStyle: { background : '#dfe8f6'},
540   - flex : 2,
541   - items: items
542   - }]
543   - };
544   -
545   - return panelConfig;
546   - },
  529 + var panelConfig = {
  530 + xtype : 'fieldset',
  531 + bodyStyle: { background : '#dfe8f6'},
  532 + flex : 2,
  533 + autoScroll : true,
  534 + height : '100%',
  535 + title: fileName,
  536 + items : [{
  537 + xtype: 'radiogroup',
  538 + cls: 'x-check-group-alt',
  539 + columns: 2,
  540 + vertical: true,
  541 + items: items
  542 + }]
  543 + };
  544 +
  545 + return panelConfig;
  546 + },
547 547  
548   - init : function(config) {
  548 + init : function(config) {
549 549  
550   - var store = Ext.create('Ext.data.Store', {
551   - fields: ['value', 'name'],
552   - data : [
553   - {"value": "FLOAT", "name":"FLOAT"},
554   - {"value": "INTEGER", "name":"INTEGER"},
555   - {"value": "DOUBLE", "name":"DOUBLE"},
556   - {"value": "SHORT", "name":"SHORT"}
557   - ]
558   - });
  550 + var store = Ext.create('Ext.data.Store', {
  551 + fields: ['value', 'name'],
  552 + data : [
  553 + {"value": "FLOAT", "name":"FLOAT"},
  554 + {"value": "INTEGER", "name":"INTEGER"},
  555 + {"value": "DOUBLE", "name":"DOUBLE"},
  556 + {"value": "SHORT", "name":"SHORT"}
  557 + ]
  558 + });
559 559  
560 560 var combo = {
561 561 xtype: 'combo',
... ... @@ -739,7 +739,7 @@ Ext.define('amdaUI.MyDataUI', {
739 739 items: [ {
740 740 xtype : 'form',
741 741 bodyStyle: { background : '#dfe8f6'},
742   - layout: { type: 'hbox'},
  742 + layout: 'hbox',
743 743 region: 'center',
744 744 buttonAlign:'left',
745 745 items : [
... ...