-
9 Nov 2012 12:14 AM #1
Unanswered: Hiding and showing address bar in Safari mobile
Unanswered: Hiding and showing address bar in Safari mobile
Hi all,
I'm developping a mobile web site with sencha Touch 2.0 and I would like to hide the safari mobile address bar when user scroll down and show it back when he scroll up and reach the top of the page.
This is the common behavior of web site with scrolling bar.
I already tried to add this :
to my application definition but this is definitively not having the wanted effect as the application shows in fullscreen without address bar but we are not able to make it showing back.Code:viewport : { autoMaximize: true },
Does anyone has an idea on how to do This?
I'm pretty sure I'm not the first one who want its mobile webSite to works this way
Thanks a lot
Benjamin
-
10 Nov 2012 3:38 PM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,121
- Vote Rating
- 453
- Answers
- 3161
So it hides the address bar but you can't get back to it?
Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Forum Manager
________________
http://www.JSONPLint.com - Source to lint your JSONP!
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
https://github.com/mitchellsimoens
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services services@sencha.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!
When posting code, please use BBCode's CODE tags.
-
12 Nov 2012 12:07 AM #3
Yes, exactly.
On safari mobile, once a web site has a vertical scrolling bar, the address bar scroll down with the entire page on it shows back when you scroll up to the top of the page.
From what I understand, the browser has this behavior if the page height exceed the screen size.
Tell me if I'm wrong but sencha viewport height just fit the screen height and the scrolling is handle in an inner container by sencha?
Do you have a trick to make this bar showing and hiding when needed?
Anyway thanks for yours answers
Benjamin


Reply With Quote