K1kk0z90 Posted January 26, 2014 Share Posted January 26, 2014 Hi all! I'm trying to hide address bar on iOS 6.1.5 in a Scirra Construct 2 project. I know this is a trivial task, and I managed to do it with GameMaker, but for some reason I can't make it work here.Here's what I'm doing:On start of layout:Browser: Execute Javascriptif (!document.getElementById('space')) { var space = document.createElement('div'); space.style.height = '60px'; space.style.clear = 'both'; space.id = 'space'; document.getElementsByTagName('body')[0].appendChild(space);}Browser: Execute Javascriptif (window.location.hash.indexOf('#') == -1) { setTimeout(function() { window.scrollTo(0, 1); }, 0);}When the page loads for the first time, it works perfectly. However, after the page has been refreshed, what happens is that the address bar still hides, but the canvas doesn't take all available space, but there is a blank space at the bottom of 60px (the height of the bar, and the height of the div I add to the page to increment space).What am I doing wrong? Thank you in advance! Quote Link to comment Share on other sites More sharing options...
Lowren Posted January 29, 2014 Share Posted January 29, 2014 It's impossible. I myself have to continue to use r146 or less because of the "Hide adress bar" feature removal after this release... I found it quite disappointing from Scirra to remove this feature btw. Quote Link to comment Share on other sites More sharing options...
K1kk0z90 Posted January 30, 2014 Author Share Posted January 30, 2014 Thank you for your answer.Infact I finally "solved" by installing r146 myself too. I think they should keep that feature, because there are still many iOS 6 devices out there. Quote Link to comment Share on other sites More sharing options...
Raiper34 Posted February 6, 2014 Share Posted February 6, 2014 WHat about Fullscreen? Quote Link to comment Share on other sites More sharing options...
K1kk0z90 Posted February 7, 2014 Author Share Posted February 7, 2014 I tried using the Browser: Request Fullscreen action, also inside a Touch event, but it didn't work. Quote Link to comment Share on other sites More sharing options...
PKrawczynski Posted February 11, 2014 Share Posted February 11, 2014 Please, everyone that uses construct2, lets try to change world a bit and make it better,http://www.scirra.com/forum/bring-back-usefull-construct-fullscreen_topic85503.htmlgo there and sign it if you agree that construct2 needs meaningfull fullscreen workarounds otherwise we will stop upgrading wchich is bad. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.