3 This file is part of Ext JS 4
5 Copyright (c) 2011 Sencha Inc
7 Contact: http://www.sencha.com/contact
9 GNU General Public License Usage
10 This file may be used under the terms of the GNU General Public License version 3.0 as published by the Free Software Foundation and appearing in the file LICENSE included in the packaging of this file. Please review the following information to ensure the GNU General Public License version 3.0 requirements will be met: http://www.gnu.org/copyleft/gpl.html.
12 If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact.
16 Ext.onReady(function() {
19 Ext.create('Ext.Viewport', {
37 title: 'Starts at width 30%',
40 html: 'west<br>I am floatable'
47 html: 'center center',
49 items: [cw = Ext.create('Ext.Window', {
53 title: 'Constrained Window',
57 html: 'I am in a Container',
58 itemId: 'center-window',
59 minimize: function() {
60 this.floatParent.down('button#toggleCw').toggle();
66 items: ['Text followed by a spacer',
69 text: 'Constrained Window',
71 toggleHandler: function() {
72 cw.setVisible(!cw.isVisible());
81 title: 'Splitter above me',
98 fieldLabel: 'Text field'
101 html: 'I am floatable'
114 title: 'South Central',
116 html: 'South Central'
118 title: 'South Eastern',
121 html: 'South Eastern',
125 title: 'South Western',
128 html: 'South Western<br>I collapse to nothing',