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

為{幸葍}努か 提交于 2019-11-28 12:38:46

You are looking for the autoMaximize configuration for Viewport:

Ext.application({
    viewport: {
        autoMaximize: true
    },
    ...
});

Remember though that it may cause some issues (taken from the Sencha docs):

  • 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.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!