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

前端 未结 1 1217
轻奢々
轻奢々 2020-12-11 07:57

When I visit http://www.wikpic.com/ on my Android-WebKit-browser the page renders on fullscreen, in other words the navigation bar that shows the URL disappear. How can I do

相关标签:
1条回答
  • 2020-12-11 08:06

    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.
    0 讨论(0)
提交回复
热议问题