Results 1 to 2 of 2

Thread: How to add Collapsible Panel with autoWidth in gridpanel tbar.

  1. #1
    Sencha User
    Join Date
    Feb 2010
    Posts
    20
    Vote Rating
    0
      0  

    Default How to add Collapsible Panel with autoWidth in gridpanel tbar.

    Hi,

    I need to add a panel in grid tbar with collapsible, resize autowidth , since grid will be in maximize window.

    i tried with this code but panel is not taking entire width.
    Code:
    
    tbar:[{xtype: 'panel',text:'Custom search',collapsible: true,collapsed: true,width:'100%',height:85}],
    Using extjs 3.2 lib

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,551
    Vote Rating
    1271
      0  

    Default

    The tbar creates a toolbar that uses toolbar layout which is a <table>. You would need to add width : 100% to the <table> for the tbar so that the panel can have 100% width
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

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