Changeset 599 for trunk/web2


Ignore:
Timestamp:
02/11/09 09:16:50 (15 years ago)
Author:
ramonb
Message:

job_monarch/js/monarch.js:

  • layout fixes to graph views
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web2/addons/job_monarch/js/monarch.js

    r597 r599  
    897897                        style:          'overflow:auto',
    898898                        multiSelect:    true,
    899                         //autoHeight:   true,
     899                        autoHeight:     true,
    900900                        autoShow:       true,
     901                        //autoScroll:   true,
    901902                        loadMask:       true,
    902903                        store:          store,
     
    920921                new Ext.TabPanel(
    921922                {
    922                         id:             'images',
     923                        id:             'tabPanel',
    923924                        region:         'center',
    924925                        bodyStyle:      'background: transparent',
    925926                        autoShow:       true,
    926927                        autoHeight:     true,
     928                        autoWidth:      true,
    927929                        //margins:      '2 2 2 0',
    928930                        //layout:       'fit',
    929931                        resizeTabs:     true,
    930                         minTabWidth:    115,
    931                         tabWidth:       135,
     932                        minTabWidth:    60,
     933                        //tabWidth:     135,
     934                        //closeable:    true,
    932935                        enableTabScroll:true,
    933                         defaults:       {autoScroll:true},
    934                         view:           view,
     936                        resizeTabs:     true,
     937                        //defaults:     {autoScroll:true},
    935938                        listeners:
    936939                        {
     
    963966                        animCollapse:   true,
    964967                        maximizable:    true,
     968                        autoScroll:     true,
     969                        defaults:       {autoScroll:true},
    965970                        title:          'Node graph details',
    966971                        //layout:               'fit',
     
    9951000                                        }
    9961001                                }
    997 
    9981002                        }),
    9991003
    1000                         items:  [ panel ]
     1004                        items:  [ panel ],
     1005                        listeners:
     1006                        {
     1007                                resize:
     1008
     1009                                function(  myWindow, width, height )
     1010                                {
     1011                                        //var myPanel   = myWindow.getComponent( 'tabPanel' ).getEl();
     1012                                        var myPanel     = myWindow.items.get( 'tabPanel' );
     1013
     1014                                        var myView      = myPanel.getActiveTab();
     1015
     1016                                        //myView.doLayout();
     1017                                        myPanel.doLayout();
     1018                                        myWindow.doLayout();
     1019                                }
     1020                        }
    10011021                });
    10021022
     
    10601080                        lastView        = myPanel.add( graphView );
    10611081
    1062                         //nodeDatastore.load();
    1063                         myPanel.setActiveTab( lastView );
    1064                 }
     1082                        myPanel.doLayout();
     1083                }
     1084
     1085                myPanel.setActiveTab( lastView );
    10651086
    10661087                myWindow.show( Button );
    1067 
    1068                 myPanel.doLayout();
    10691088                myWindow.doLayout();
    10701089
Note: See TracChangeset for help on using the changeset viewer.