Hybrid View
-
21 May 2012 2:12 PM #1
Way to hide URL bar with autoMaximize: false?
Way to hide URL bar with autoMaximize: false?
Looking at the API it appears that setting autoMaximize: true isn't recommended. If that is the case is there any other way to cause the iOS URL bar to auto hide? When you have the URL bar, title bar, and tab bar, there just isn't much "work area" left on iPhone. iPad is fine because the URL bar always shows and you have a lot more real estate.
What are people doing for this?
autoMaximize : Boolean
Whether or not to always automatically maximize the viewport on first load and all subsequent orientation changes.
This is set to false by default for a number of reasons:- 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.
-
22 May 2012 12:05 AM #2
-
22 May 2012 8:51 AM #3
Since we aren't wrapping in native, I wonder if this is the safest bet? All my testing on iPhone shows no problems with fullscreen and I don't see a performance difference either way. Android scares me with all the devices out there so I think leaving it false for them.
Code:viewport: { autoMaximize: Ext.os.is.iOS },
-
22 May 2012 10:32 AM #4
Setting it to true is generally safe on iOS, apart from version 3. It is very flakey on Android and messes up native packaging though.
Sencha Inc.
Robert Dougan - @rdougan
Sencha Touch 2 and Ext JS 4 Core Team Member, SASS/Theming Wizard.
-
22 May 2012 10:56 AM #5
-
4 Jun 2012 10:23 AM #6
Here is my latest setting.
Reason why is:Code:viewport: { autoMaximize: !Ext.browser.is.Standalone && Ext.os.is.iOS && Ext.browser.version.isGreaterThan(3) },
http://www.sencha.com/forum/showthread.php?214253-viewport-autoMaximize-true-causes-problems-launching-from-iOS-home-screen&p=821745#post821745


Reply With Quote
