Permalink
Browse files

Use the global Viewport instance.

  • Loading branch information...
1 parent e7299f7 commit 84a6569453151efb1e5962d42034ea4c18023059 @nelstrom committed Feb 14, 2012
Showing with 6 additions and 4 deletions.
  1. +4 −2 app.js
  2. +2 −2 app/view/{Viewport.js → Main.js}
View
6 app.js
@@ -6,9 +6,11 @@ Ext.application({
name: 'Sencha',
controllers: ['Main'],
- views: ['Viewport'],
+ views: ['Main'],
launch: function() {
- Ext.create('Sencha.view.Viewport');
+ Ext.Viewport.add({
+ xclass: 'Sencha.view.Main'
+ });
}
});
View
4 app/view/Viewport.js → app/view/Main.js
@@ -1,6 +1,6 @@
-Ext.define('Sencha.view.Viewport', {
+Ext.define('Sencha.view.Main', {
extend: 'Ext.Panel',
-
+
config: {
fullscreen: true,
styleHtmlContent: true,

0 comments on commit 84a6569

Please sign in to comment.