Results 1 to 1 of 1

Thread: anchor Resizing

  1. #1

    Default anchor Resizing

    Hi,
    i have anchor resizing problem please advise .

    i have grids placed under anchor layout in center region like shown below
    Code:
    {               region: 'center', // a center region is ALWAYS required for border layout
                    id : 'center',
                    layout:'anchor',
                    anchorSize: {width:800, height:600},
                        border:false,
                    items:[{
                        title:'Result Grid',
                        id: 'pnlResutView',
                        title: 'Result View',
                        contentEl:'treegriddata',
                        collapsible: true
                        
                    },{
                        title:'Summary Grid',
                        id: 'pnlSummaryView',
                        title: 'Summary View',
                        contentEl:'summaryGrid',
                        collapsible: true
                        
                    }
    On load I am hiding the pnlSummaryView and making pnlResultView 100% 100% but now the problem am facing is

    On click of button am trying to resize both the grids, like pnlSummaryView to 100% 50% and pnlResultView 100% 50% (width,height) ,shown in the code below is not working .

    Code:
    function getEvent(){ 
    Ext.getCmp("pnlSummaryView").el.show();
     
    Ext.getCmp("pnlSummaryView").anchor="100% 50%";
     
    Ext.getCmp("pnlSummaryView").doLayout();
     
    Ext.getCmp("pnlResutView").anchor="100% 50%";
     
    Ext.getCmp("pnlResutView").doLayout();
    }
    trying to load the page with both the grids 50% and 50% height which is not happening ,Please advise how to achieve this

    Thanks
    Shiva
    Last edited by shiva-Kumar; 12 Feb 2010 at 6:03 AM. Reason: for better understanding

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •