Properties Methods Events Config Options Direct Link
Layout
  ContainerLayout
    BoxLayout
      VBoxLayout

Class Ext.layout.VBoxLayout

Package:Ext.layout
Defined In:BoxLayout.js
Class:VBoxLayout
Extends:BoxLayout

A layout that arranges items vertically down a Container. This layout optionally divides available vertical space between child items containing a numeric flex configuration. The flex option is a ratio that distributes height after any items with explicit heights have been accounted for. In the code below, the height is calculated as follows:

new Ext.Container({
    width: 300,
    height: 400,
    layout: {
        type: 'vbox',
        align: 'stretch'
    },
    items: [{
        flex: 2,
        html: 'First'
    },{
        width: 100,
        html: 'Second'
    },{
        flex: 1,
        html: 'Third'
    }]
});
This layout may also be used to set the widths of child items by configuring it with the align option.

Config Options

Config OptionsDefined By

Public Properties

This class has no public properties.

Public Methods

MethodDefined By

Public Events

This class has no public events.