3 <title>VBox Layout</title>
4 <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css"/>
8 <script type="text/javascript" src="../../adapter/ext/ext-base.js"></script>
11 <script type="text/javascript" src="../../ext-all.js"></script>
13 <style type="text/css">
15 font: normal 12px verdana;
21 <script type="text/javascript">
22 Ext.onReady(function() {
24 var replace = function(config, name) {
25 var btns = Ext.getCmp('btns');
27 if (name && name != currentName) {
38 // console.profileEnd();
42 var viewport = new Ext.Viewport({
57 html: '<p style="padding:10px;color:#556677;font-size:11px;">Select a configuration to the right »</p>'
78 text: 'Spaced / Align: left',
86 defaults:{margins:'0 0 5 0'},
108 text: 'Multi-Spaced / Align: left',
116 defaults:{margins:'0 0 5 0'},
140 }, 'multi spaced - align left');
152 defaults:{margins:'0 0 5 0'},
170 text: 'Align: center',
178 defaults:{margins:'0 0 5 0'},
196 text: 'Align: stretch',
204 defaults:{margins:'0 0 5 0'},
222 text: 'Align: stretchmax',
230 defaults:{margins:'0 0 5 0'},
244 }, 'align stretchmax');
262 text: 'Flex: Even / Align: center',
270 defaults:{margins:'0 0 5 0'},
289 }, 'align flex even');
293 text: 'Flex: Ratio / Align: center',
301 defaults:{margins:'0 0 5 0'},
320 }, 'align flex ratio');
324 text: 'Flex + Stretch',
332 defaults:{margins:'0 0 5 0'},
351 }, 'align flex + stretch');
355 text: 'Pack: start / Align: center',
364 defaults:{margins:'0 0 5 0'},
378 }, 'align pack start + align center');
382 text: 'Pack: center / Align: center',
391 defaults:{margins:'0 0 5 0'},
406 }, 'align pack center + align center');
410 text: 'Pack: end / Align: center',
419 defaults:{margins:'0 0 5 0'},
434 }, 'align pack end + align center');