]>
Commit | Line | Data |
---|---|---|
6527f429 DM |
1 | Ext.define('Pandora.view.Viewport', {\r |
2 | extend: 'Ext.container.Viewport',\r | |
3 | layout: 'fit',\r | |
4 | \r | |
5 | requires: [\r | |
6 | 'Pandora.view.NewStation',\r | |
7 | 'Pandora.view.SongControls',\r | |
8 | 'Pandora.view.StationsList',\r | |
9 | 'Pandora.view.RecentlyPlayedScroller',\r | |
10 | 'Pandora.view.SongInfo'\r | |
11 | ],\r | |
12 | \r | |
13 | initComponent: function() {\r | |
14 | this.items = {\r | |
15 | dockedItems: [{\r | |
16 | dock: 'top',\r | |
17 | xtype: 'toolbar',\r | |
18 | height: 80,\r | |
19 | items: [{\r | |
20 | xtype: 'newstation',\r | |
21 | width: 150\r | |
22 | }, {\r | |
23 | xtype: 'songcontrols',\r | |
24 | flex: 1\r | |
25 | }, {\r | |
26 | xtype: 'component',\r | |
27 | html: 'Pandora<br>Internet Radio'\r | |
28 | }]\r | |
29 | }],\r | |
30 | layout: {\r | |
31 | type: 'hbox',\r | |
32 | align: 'stretch'\r | |
33 | },\r | |
34 | items: [{\r | |
35 | width: 250,\r | |
36 | xtype: 'panel',\r | |
37 | layout: {\r | |
38 | type: 'vbox',\r | |
39 | align: 'stretch'\r | |
40 | },\r | |
41 | items: [{\r | |
42 | xtype: 'stationslist',\r | |
43 | flex: 1\r | |
44 | }, {\r | |
45 | html: 'Ad',\r | |
46 | height: 250,\r | |
47 | xtype: 'panel'\r | |
48 | }]\r | |
49 | }, {\r | |
50 | xtype: 'container',\r | |
51 | flex: 1,\r | |
52 | border: false,\r | |
53 | layout: {\r | |
54 | type: 'vbox',\r | |
55 | align: 'stretch'\r | |
56 | },\r | |
57 | items: [{\r | |
58 | xtype: 'recentlyplayedscroller',\r | |
59 | height: 250\r | |
60 | }, {\r | |
61 | xtype: 'songinfo',\r | |
62 | flex: 1\r | |
63 | }]\r | |
64 | }]\r | |
65 | };\r | |
66 | \r | |
67 | this.callParent();\r | |
68 | }\r | |
69 | }); |