Properties Methods Events Config Options Direct Link
Layout
  ContainerLayout
    BoxLayout
      HBoxLayout

Class Ext.layout.HBoxLayout

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

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

new Ext.Container({
    width: 400,
    height: 300,
    layout: {
        type: 'hbox',
        align: 'stretch'
    },
    items: [{
        flex: 2,
        html: 'First'
    },{
        width: 100,
        html: 'Second'
    },{
        flex: 1,
        html: 'Third'
    }]
});
This layout may also be used to set the heights 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.