2 Ext.onReady(function() {
5 Ext.create('Ext.Viewport', {
23 title: 'Starts at width 30%',
26 html: 'west<br>I am floatable'
33 html: 'center center',
35 items: [cw = Ext.create('Ext.Window', {
39 title: 'Constrained Window',
43 html: 'I am in a Container',
44 itemId: 'center-window',
45 minimize: function() {
46 this.floatParent.down('button#toggleCw').toggle();
52 items: ['Text followed by a spacer',
55 text: 'Constrained Window',
57 toggleHandler: function() {
58 cw.setVisible(!cw.isVisible());
67 title: 'Splitter above me',
84 fieldLabel: 'Text field'
87 html: 'I am floatable'
100 title: 'South Central',
102 html: 'South Central'
104 title: 'South Eastern',
107 html: 'South Eastern',
111 title: 'South Western',
114 html: 'South Western<br>I collapse to nothing',