Search the Community
Showing results for tags 'address bar'.
-
I have my game set to Phaser.ScaleManager.SHOW_ALL On an iPhone 4 and some android devices, it automatically removes the address bar at the top of the screen. Can I - tell Phaser to not to do that? or - get the new window height (window.innerHeight) after the status bar has been scrolled away so I can reset game.height thanks
- 3 replies
-
- address bar
- status bar
-
(and 1 more)
Tagged with:
-
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 Javascript if (!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 Javascript if (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!
- 5 replies
-
- safari
- address bar
-
(and 5 more)
Tagged with:
-
Considering the Safari (IOS7) and last version of Chrome mobile, How did you handle this situation? Did you find coding workarounds or simply expain that these are not your fault? In the last case, what was the sponsors reaction?
- 1 reply
-
- sponsors
- address bar
-
(and 1 more)
Tagged with: