Results 1 to 2 of 2

Thread: layout border

  1. #1
    Sencha User feva's Avatar
    Join Date
    Aug 2008
    Posts
    18
    Vote Rating
    0
      0  

    Default layout border

    Code:
    				region:'west',
    				width: 240,
    				id: 'west-region-container',
    				padding: '0 0 5 5',
    				layout: 'vbox',
    				cls: 'viewport-top-bg',
    				defaults: {
    					xtype: 'container',
    					width: "100%"
    				},
    				items: [
    				...treepanel
    treepanel overflow shows, can't see the buttons of treepanel.

    set:
    Code:
    				defaults: {
    					xtype: 'container',
    					width: "235"
    				},
    It's ok.
    Feva

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

    Default

    width cannot be a string, it has to be a number.

    Valid:
    Code:
    width: 200
    Not valid:
    Code:
    width: '100%'
    width: '200px'
    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

Posting Permissions

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