PDA

View Full Version : Hide the Address Bar within Web Applications using sencha touch



raju0574
10 Oct 2011, 10:03 PM
how to hide the address bar for specific devices using sencha touch,



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 );

will this code work with sench touch.

skirtle
10 Oct 2011, 11:46 PM
This is an ExtJS 4 forum. There's a separate forum for Sencha Touch questions.