3 <title>HBox 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">
23 Ext.onReady(function() {
27 var replace = function(config, name) {
28 var btns = Ext.getCmp('btns');
30 if (name && name != currentName) {
35 btns.add(Ext.apply(config, {
44 var viewport = new Ext.Viewport({
59 html: '<p style="padding:10px;color:#556677;">Select a configuration below:</p>'
88 defaults:{margins:'0 5 0 0'},
117 defaults:{margins:'0 5 0 0'},
135 text: 'Align: middle',
142 defaults:{margins:'0 5 0 0'},
160 text: 'Align: stretch',
167 defaults:{margins:'0 5 0 0'},
185 text: 'Align: stretchmax',
192 defaults:{margins:'0 5 0 0'},
206 }, 'align stretchmax');
224 text: 'Flex: All even / Align: middle',
231 defaults:{margins:'0 5 0 0'},
254 text: 'Flex: Ratio / Align: top',
261 defaults:{margins:'0 5 0 0'},
284 text: 'Pack: start / Align: middle',
292 defaults:{margins:'0 5 0 0'},
310 text: 'Pack: center / Align: middle',
318 defaults:{margins:'0 5 0 0'},
337 text: 'Pack: end / Align: middle',
345 defaults:{margins:'0 5 0 0'},