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.VBox'>/**
2 </span> * @class Ext.layout.container.VBox
3 * @extends Ext.layout.container.Box
4 * <p>A layout that arranges items vertically down a Container. This layout optionally divides available vertical
5 * space between child items containing a numeric <code>flex</code> configuration.</p>
6 * This layout may also be used to set the widths of child items by configuring it with the {@link #align} option.
7 * {@img Ext.layout.container.VBox/Ext.layout.container.VBox.png Ext.layout.container.VBox container layout}
9 Ext.create('Ext.Panel', {
12 title: "VBoxLayout Panel",
17 renderTo: document.body,
20 title: 'Inner Panel One',
25 title: 'Inner Panel Two',
30 title: 'Inner Panel Three',
36 Ext.define('Ext.layout.container.VBox', {
38 /* Begin Definitions */
40 alias: ['layout.vbox'],
41 extend: 'Ext.layout.container.Box',
42 alternateClassName: 'Ext.layout.VBoxLayout',
46 <span id='Ext-layout.container.VBox-cfg-align'> /**
47 </span> * @cfg {String} align
48 * Controls how the child items of the container are aligned. Acceptable configuration values for this
50 * <div class="mdetail-params"><ul>
51 * <li><b><tt>left</tt></b> : <b>Default</b><div class="sub-desc">child items are aligned horizontally
52 * at the <b>left</b> side of the container</div></li>
53 * <li><b><tt>center</tt></b> : <div class="sub-desc">child items are aligned horizontally at the
54 * <b>mid-width</b> of the container</div></li>
55 * <li><b><tt>stretch</tt></b> : <div class="sub-desc">child items are stretched horizontally to fill
56 * the width of the container</div></li>
57 * <li><b><tt>stretchmax</tt></b> : <div class="sub-desc">child items are stretched horizontally to
58 * the size of the largest item.</div></li>
59 * </ul></div>
61 align : 'left', // left, center, stretch, strechmax
64 alignCenteringString: 'center',
68 direction: 'vertical',
70 // When creating an argument list to setSize, use this order
72 perpendicularSizeIndex: 0,
74 parallelPrefix: 'height',
75 parallelPrefixCap: 'Height',
78 parallelBefore: 'top',
79 parallelBeforeCap: 'Top',
80 parallelAfter: 'bottom',
81 parallelPosition: 'y',
83 perpendicularPrefix: 'width',
84 perpendicularPrefixCap: 'Width',
87 perpendicularLeftTop: 'left',
88 perpendicularRightBottom: 'right',
89 perpendicularPosition: 'x'
90 });</pre></pre></body></html>