1 <!DOCTYPE html><html><head><title>Sencha Documentation Project</title><link rel="stylesheet" href="../reset.css" type="text/css"><link rel="stylesheet" href="../prettify.css" type="text/css"><link rel="stylesheet" href="../prettify_sa.css" type="text/css"><script type="text/javascript" src="../prettify.js"></script></head><body onload="prettyPrint()"><pre class="prettyprint"><pre><span id='Ext-layout.container.HBox'>/**
2 </span> * @class Ext.layout.container.HBox
3 * @extends Ext.layout.container.Box
4 * <p>A layout that arranges items horizontally across a Container. This layout optionally divides available horizontal
5 * space between child items containing a numeric <code>flex</code> configuration.</p>
6 * This layout may also be used to set the heights of child items by configuring it with the {@link #align} option.
7 * {@img Ext.layout.container.HBox/Ext.layout.container.HBox.png Ext.layout.container.HBox container layout}
9 Ext.create('Ext.Panel', {
12 title: "HBoxLayout Panel",
17 renderTo: document.body,
20 title: 'Inner Panel One',
24 title: 'Inner Panel Two',
28 title: 'Inner Panel Three',
33 Ext.define('Ext.layout.container.HBox', {
35 /* Begin Definitions */
37 alias: ['layout.hbox'],
38 extend: 'Ext.layout.container.Box',
39 alternateClassName: 'Ext.layout.HBoxLayout',
43 <span id='Ext-layout.container.HBox-cfg-align'> /**
44 </span> * @cfg {String} align
45 * Controls how the child items of the container are aligned. Acceptable configuration values for this
47 * <div class="mdetail-params"><ul>
48 * <li><b><tt>top</tt></b> : <b>Default</b><div class="sub-desc">child items are aligned vertically
49 * at the <b>top</b> of the container</div></li>
50 * <li><b><tt>middle</tt></b> : <div class="sub-desc">child items are aligned vertically in the
51 * <b>middle</b> of the container</div></li>
52 * <li><b><tt>stretch</tt></b> : <div class="sub-desc">child items are stretched vertically to fill
53 * the height of the container</div></li>
54 * <li><b><tt>stretchmax</tt></b> : <div class="sub-desc">child items are stretched vertically to
55 * the height of the largest item.</div></li>
56 * </ul></div>
58 align: 'top', // top, middle, stretch, strechmax
61 alignCenteringString: 'middle',
65 direction: 'horizontal',
67 // When creating an argument list to setSize, use this order
69 perpendicularSizeIndex: 1,
71 parallelPrefix: 'width',
72 parallelPrefixCap: 'Width',
75 parallelBefore: 'left',
76 parallelBeforeCap: 'Left',
77 parallelAfter: 'right',
78 parallelPosition: 'x',
80 perpendicularPrefix: 'height',
81 perpendicularPrefixCap: 'Height',
84 perpendicularLeftTop: 'top',
85 perpendicularRightBottom: 'bottom',
86 perpendicularPosition: 'y'
87 });</pre></pre></body></html>