123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- Ext.define('Pandora.view.Viewport', {
- extend: 'Ext.container.Viewport',
- layout: 'fit',
-
- requires: [
- 'Pandora.view.NewStation',
- 'Pandora.view.SongControls',
- 'Pandora.view.StationsList',
- 'Pandora.view.RecentlyPlayedScroller',
- 'Pandora.view.SongInfo'
- ],
-
- initComponent: function() {
- this.items = {
- dockedItems: [{
- dock: 'top',
- xtype: 'toolbar',
- height: 80,
- items: [{
- xtype: 'newstation',
- width: 150
- }, {
- xtype: 'songcontrols',
- flex: 1
- }, {
- xtype: 'component',
- html: 'Pandora<br>Internet Radio'
- }]
- }],
- layout: {
- type: 'hbox',
- align: 'stretch'
- },
- items: [{
- width: 250,
- xtype: 'panel',
- layout: {
- type: 'vbox',
- align: 'stretch'
- },
- items: [{
- xtype: 'stationslist',
- flex: 1
- }, {
- html: 'Ad',
- height: 250,
- xtype: 'panel'
- }]
- }, {
- xtype: 'container',
- flex: 1,
- border: false,
- layout: {
- type: 'vbox',
- align: 'stretch'
- },
- items: [{
- xtype: 'recentlyplayedscroller',
- height: 250
- }, {
- xtype: 'songinfo',
- flex: 1
- }]
- }]
- };
-
- this.callParent();
- }
- });
|