1. #1
    Sencha User
    Join Date
    Feb 2009
    Posts
    326
    Vote Rating
    0
    joefox is on a distinguished road

      0  

    Default Column Spacing

    Column Spacing


    I created a new column on my page, however, there is no spacing like in the examples...
    Any ideas?
    Like this: http://extjs.com/deploy/dev/examples...t-browser.html the table layout.

    Code:
    {
           layout:'column',
           title:'test',
           items: [{
            title: 'Width = 25%',
            columnWidth: .25,
            contentEl: 'thistest'
           },{
            title: 'Width = 75%',
            columnWidth: .75,
            html: 'Content'
           }

  2. #2
    Sencha User walldorff's Avatar
    Join Date
    Mar 2008
    Location
    Antwerp, Belgium
    Posts
    164
    Vote Rating
    2
    walldorff is on a distinguished road

      0  

    Default


    You could try with CSS.

    Code:
    ...,
    defaults:{
        style:'padding:10px;'
    },
    items:[
        ...
    ]
    A better way is to make a css class and use cls: 'cellpadding-class' instead of style.
    ExtJS 3.4, WAMP Apache 2.2.17, PHP 5.3.5, MySQL 5.5.8

  3. #3
    Sencha User
    Join Date
    Feb 2009
    Posts
    326
    Vote Rating
    0
    joefox is on a distinguished road

      0  

    Default


    perfect worked exactly how i wnated it to.

    Thanks!

  4. #4
    Sencha User walldorff's Avatar
    Join Date
    Mar 2008
    Location
    Antwerp, Belgium
    Posts
    164
    Vote Rating
    2
    walldorff is on a distinguished road

      0  

    Default


    The eqyuivalent of cellspacing (in an html table) in this example is margin
    ExtJS 3.4, WAMP Apache 2.2.17, PHP 5.3.5, MySQL 5.5.8

Thread Participants: 1