1. #1
    Sencha User
    Join Date
    Jun 2010
    Location
    Münster, Germany
    Posts
    7
    Vote Rating
    0
    hl_igig is on a distinguished road

      0  

    Default [B3] VBox-Layout ignores align/pack?

    [B3] VBox-Layout ignores align/pack?


    I try to use the VBox-Layout. But even the most simple Example doesn't work.

    PHP Code:
    Ext.onReady(function() {
                var 
    panel Ext.create('Ext.panel.Panel',{
                    
    title:'VBox-Test',
                    
    margin:20,
                    
    width:300,
                    
    height:300,
                    
    layout:'vbox',
                    
    pack:'center',
                    
    align:'center'
                    
    items:[{
                        
    xtype:'button',
                        
    text:'Button 1'
                    
    },{
                        
    xtype:'button',
                        
    text:'Button 2'
                    
    },{
                        
    xtype:'button',
                        
    text:'Button 1'
                    
    }]
                });
                
    panel.render(document.body);
            }); 
    Any hints?

    thx

  2. #2
    Touch Premium Member
    Join Date
    Jun 2008
    Posts
    43
    Vote Rating
    0
    bhutten is on a distinguished road

      0  

    Default


    Try:

    Code:
    layout: {
      type: 'vbox', 
      pack:'center', 
      align:'center'
    }

  3. #3
    Sencha User
    Join Date
    Jun 2010
    Location
    Münster, Germany
    Posts
    7
    Vote Rating
    0
    hl_igig is on a distinguished road

      0  

    Default


    should have read the docs more careful

    thx bhutten

Similar Threads

  1. Way to right align vbox items?
    By estesbubba in forum Ext 3.x: Help & Discussion
    Replies: 7
    Last Post: 20 Nov 2013, 3:01 AM
  2. Replies: 7
    Last Post: 24 Feb 2011, 1:25 PM
  3. vbox-layout inside a border-layout with a grid + sizing
    By tobiu in forum Community Discussion
    Replies: 1
    Last Post: 21 Jul 2010, 7:14 AM
  4. [2.0.2] Grid in a complex layout ignores plugins!
    By lupin85.luca in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 14 Mar 2008, 2:12 AM

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar