Threaded View
-
10 Oct 2011 10:03 PM #1
Unanswered: Hide the Address Bar within Web Applications using sencha touch
Unanswered: Hide the Address Bar within Web Applications using sencha touch
how to hide the address bar for specific devices using sencha touch,
will this code work with sench touch.Code:function hideAddressBar() { if(!window.location.hash) { if(document.height < window.outerHeight) { document.body.style.height = (window.outerHeight + 50) + 'px'; } setTimeout( function(){ window.scrollTo(0, 1); }, 50 ); } } window.addEventListener("load", function(){ if(!window.pageYOffset){ hideAddressBar(); } } ); window.addEventListener("orientationchange", hideAddressBar );


Reply With Quote