3 <title>VBox Layout</title>
4 <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
5 <link rel="stylesheet" type="text/css" href="../shared/example.css" />
6 <script type="text/javascript" src="../../bootstrap.js"></script>
8 <style type="text/css">
10 font: normal 12px verdana;
16 <script type="text/javascript">
17 Ext.onReady(function() {
19 var replace = function(config, name) {
20 var btns = Ext.getCmp('btns');
21 if (name && name != currentName) {
24 btns.add(Ext.apply(config));
28 var viewport = Ext.create('Ext.Viewport', {
43 html: '<p style="padding:10px;color:#556677;font-size:11px;">Select a configuration to the right »</p>'
64 text: 'Spaced / Align: left',
72 defaults:{margins:'0 0 5 0'},
94 text: 'Multi-Spaced / Align: left',
102 defaults:{margins:'0 0 5 0'},
126 }, 'multi spaced - align left');
138 defaults:{margins:'0 0 5 0'},
156 text: 'Align: center',
164 defaults:{margins:'0 0 5 0'},
182 text: 'Align: stretch',
190 defaults:{margins:'0 0 5 0'},
208 text: 'Align: stretchmax',
216 defaults:{margins:'0 0 5 0'},
230 }, 'align stretchmax');
248 text: 'Flex: Even / Align: center',
256 defaults:{margins:'0 0 5 0'},
275 }, 'align flex even');
279 text: 'Flex: Ratio / Align: center',
287 defaults:{margins:'0 0 5 0'},
306 }, 'align flex ratio');
310 text: 'Flex + Stretch',
318 defaults:{margins:'0 0 5 0'},
337 }, 'align flex + stretch');
341 text: 'Pack: start / Align: center',
350 defaults:{margins:'0 0 5 0'},
364 }, 'align pack start + align center');
368 text: 'Pack: center / Align: center',
377 defaults:{margins:'0 0 5 0'},
392 }, 'align pack center + align center');
396 text: 'Pack: end / Align: center',
405 defaults:{margins:'0 0 5 0'},
420 }, 'align pack end + align center');