1

Possible Duplicate:
how to fullscreen a Sencha Touch 2 page on a WebKit browser?

How do you reliably make the viewport take up the entire canvas in Sencha Touch 2?

Community
  • 1
  • 1
Scott Roepnack
  • 2,725
  • 5
  • 19
  • 36

1 Answers1

5

try this:

Ext.Viewport.init();
        Ext.create('Ext.Panel'({
            fullscreen:true})  

added to your main app file. This will work if your main view is a panel. You can also add it as a property of your app:

Ext.application({
    name: 'YourApp',
    stores: [
    ],
    controllers: [
    ],
    views: [

    ],
    viewport: {
        autoMaximize: true
    },
    launch: function(){

    }
});
jusynth
  • 183
  • 7