1. #1
    Sencha User
    Join Date
    Jan 2011
    Posts
    7
    Vote Rating
    0
    frb is on a distinguished road

      0  

    Default Spacer(tbspacer) question

    Spacer(tbspacer) question


    Sencha Designer 2 don't allow to add tbspacer to not toolbar containers, so this example from HBox Layout couldn't reproduced:
    PHP Code:
    text'Spaced',
    handler: function(){
        
    replace({
            
    layout: {
                
    type'hbox',
                
    padding:'5',
                
    align:'top'
            
    },
            
    defaults:{margins:'0 5 0 0'},
            
    items:[{
                
    xtype:'button',
                
    text'Small Size'
            
    },{
                
    xtype:'tbspacer',
                
    flex:1
            
    },{
                
    xtype:'button',
                
    scale'medium',
                
    text'Medium Size'
            
    },{
                
    xtype:'tbspacer',
                
    flex:1
            
    },{
                
    xtype:'button',
                
    scale'large',
                
    text'Large Size',
                
    margins:'0'
            
    }]
        }, 
    'spaced'); 
    how to add flex spaces between components in hbox layout?

  2. #2
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    8,191
    Vote Rating
    63
    aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice aconran is just really nice

      0  

    Default


    tbspacer - toolbar spacer

    Add a component and set the flex to 1.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  3. #3
    Sencha User
    Join Date
    Jan 2011
    Posts
    7
    Vote Rating
    0
    frb is on a distinguished road

      0  

    Default


    thanks

Tags for this Thread