1. #1
    Sencha User
    Join Date
    Dec 2009
    Posts
    364
    Vote Rating
    2
    raj_plays is on a distinguished road

      0  

    Question Extra vertical spacing on doLayout in vbox layout

    Extra vertical spacing on doLayout in vbox layout


    Hi,
    My window has a vbox layout.
    I added 2 items(a child window with a form in it and a spacer) to the window before rendering it.
    Then I added a grid to the parent window at runtime and did a doLayout().
    This caused some extra vertical spacing to appear between the child window and the spacer.
    I want all items to have a fixed height.
    Please help with this.
    Code:
    var childWindow = new Ext.Window({
        closable: false,
        width: 660,
        height: 50,
        plain: true,
        frame: false,
        layout: 'fit',
        style: {
            border: '1px solid black'
        },
        items: statisticsForm
    });
    
    var mainWindow = new Ext.Window({
        id: 'overviewWindow',
        closable: true,
        width: 700,
        height: 600,
        plain: true,
        modal: true,
        layout: 'vbox',
        items: [childWindow,
        {
            xtype: 'spacer',
            height: 20
        }]
    });
    
    
    //The dynamic part follows
    mainWindow.add(grid);
    mainWindow.doLayout();

  2. #2
    Sencha User
    Join Date
    Oct 2009
    Location
    Cambridge, UK
    Posts
    164
    Vote Rating
    0
    Uberdude is on a distinguished road

      0  

    Default


    Putting a window inside a window is something I've never done, nor considered doing (though I've not seen it explicitly forbidden). It probably causes problems. The child window should be a panel, or even not exist at all and just stick in the statisticsForm directly.

  3. #3
    Sencha User
    Join Date
    Dec 2009
    Posts
    364
    Vote Rating
    2
    raj_plays is on a distinguished road

      0  

    Default


    Thank you, Uberdude!!
    Indeed, removing the child window did the trick.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi