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', {
38 title: 'Starts at width 30%',
43 html: 'west<br>I am floatable'
50 html: 'center center',
53 items: [cw = Ext.create('Ext.Window', {
57 title: 'Constrained Window',
61 html: 'I am in a Container',
62 itemId: 'center-window',
63 minimize: function() {
64 this.floatParent.down('button#toggleCw').toggle();
70 items: ['Text followed by a spacer',
73 text: 'Constrained Window',
75 toggleHandler: function() {
76 cw.setVisible(!cw.isVisible());
85 title: 'Splitter above me',
106 fieldLabel: 'Text field'
109 html: 'I am floatable'
123 title: 'South Central',
126 html: 'South Central'
128 title: 'South Eastern',
132 html: 'South Eastern',
136 title: 'South Western',
140 html: 'South Western<br>I collapse to nothing',