How to hide URL Bar by using sencha touch

sencha
tomoyukikashiro
tomoyukikashiro

Outline

I wonder if you want to hide urlbar in smartphone web site, you will write following script( using jquery)

$(function(){
    window.scrollTo(0,1);
});

How to…

If you want to hide URLbar by using sencha touch, you can write following code in ** app.js **.

viewport: {
    autoMaximize: !Ext.browser.is.Standalone && Ext.os.is.iOS
}
  • Orientation change performance is drastically reduced when this is enabled, on all devices.
  • On some devices (mostly Android) this can sometimes cause issues when the default browser zoom setting is changed.
  • When wrapping your phone in a native shell, you may get a blank screen.

reference