3 <title>HBox 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
30 btns.add(Ext.apply(config, {
\r
38 var viewport = new Ext.Viewport({
\r
53 html: '<p style="padding:10px;color:#556677;">Select a configuration below:</p>'
\r
76 handler: function(){
\r
82 defaults:{margins:'0 5 0 0'},
\r
104 text: 'Align: top',
\r
105 handler: function(){
\r
111 defaults:{margins:'0 5 0 0'},
\r
129 text: 'Align: middle',
\r
130 handler: function(){
\r
136 defaults:{margins:'0 5 0 0'},
\r
154 text: 'Align: stretch',
\r
155 handler: function(){
\r
161 defaults:{margins:'0 5 0 0'},
\r
179 text: 'Align: stretchmax',
\r
180 handler: function(){
\r
186 defaults:{margins:'0 5 0 0'},
\r
213 toggleGroup:'btns',
\r
214 allowDepress: false
\r
218 text: 'Flex: All even / Align: middle',
\r
219 handler: function(){
\r
225 defaults:{margins:'0 5 0 0'},
\r
248 text: 'Flex: Ratio / Align: top',
\r
249 handler: function(){
\r
255 defaults:{margins:'0 5 0 0'},
\r
278 text: 'Pack: start / Align: middle',
\r
279 handler: function(){
\r
286 defaults:{margins:'0 5 0 0'},
\r
304 text: 'Pack: center / Align: middle',
\r
305 handler: function(){
\r
312 defaults:{margins:'0 5 0 0'},
\r
331 text: 'Pack: end / Align: middle',
\r
332 handler: function(){
\r
339 defaults:{margins:'0 5 0 0'},
\r