3 <title>VBox Layout</title>
\r
4 <link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css"/>
\r
8 <script type="text/javascript" src="../../adapter/ext/ext-base.js"></script>
\r
11 <script type="text/javascript" src="../../ext-all.js"></script>
\r
13 <style type="text/css">
\r
15 font: normal 12px verdana;
\r
21 <script type="text/javascript">
\r
23 Ext.onReady(function() {
\r
25 var replace = function(config){
\r
26 var btns = Ext.getCmp('btns');
\r
34 var viewport = new Ext.Viewport({
\r
49 html: '<p style="padding:10px;color:#556677;font-size:11px;">Select a configuration to the right »</p>'
\r
73 handler: function(){
\r
80 defaults:{margins:'0 0 5 0'},
\r
102 text: 'Multi-Spaced',
\r
103 handler: function(){
\r
110 defaults:{margins:'0 0 5 0'},
\r
138 text: 'Align: top',
\r
139 handler: function(){
\r
146 defaults:{margins:'0 0 5 0'},
\r
164 text: 'Align: middle',
\r
165 handler: function(){
\r
172 defaults:{margins:'0 0 5 0'},
\r
190 text: 'Align: stretch',
\r
191 handler: function(){
\r
198 defaults:{margins:'0 0 5 0'},
\r
216 text: 'Align: stretchmax',
\r
217 handler: function(){
\r
224 defaults:{margins:'0 0 5 0'},
\r
250 toggleGroup:'btns',
\r
251 allowDepress: false
\r
255 text: 'Flex: All even',
\r
256 handler: function(){
\r
263 defaults:{margins:'0 0 5 0'},
\r
286 text: 'Flex: Ratio',
\r
287 handler: function(){
\r
294 defaults:{margins:'0 0 5 0'},
\r
317 text: 'Flex + Stretch',
\r
318 handler: function(){
\r
325 defaults:{margins:'0 0 5 0'},
\r
348 text: 'Pack: start',
\r
349 handler: function(){
\r
357 defaults:{margins:'0 0 5 0'},
\r
375 text: 'Pack: center',
\r
376 handler: function(){
\r
384 defaults:{margins:'0 0 5 0'},
\r
404 handler: function(){
\r
412 defaults:{margins:'0 0 5 0'},
\r