User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:35.0) Gecko/20100101 Firefox/35.0 Build ID: 20150108202552 Steps to reproduce: 1. Visit http://labrat.mobi/games/astro_carl/ in Firefox for Android 2. Rotate screen to landscape Actual results: Game does not resize to fit the screen (works on Chrome) - was working fine in previous version of Firefox for Android. Firefox returns incorrect window.innerHeight (probably ignoring the address bar height) Expected results: Game should have resized to fit the screen.
make sure to uncheck "fullscreen" and click "Tap to Play".
Note: This happens when fullscreen browsing is enabled in settings. This is annoying when you have "touchmove" mechanics in game, which makes the screen scroll.
Component: General → General
Product: Core → Firefox for Android
Version: 35 Branch → Firefox 35
Possible dupe of bug 923663, 1071620?
Severity: critical → normal
Not quite the same as those, but probably related. I filed a meta bug to track all of these things; I don't think this is something we can fix piecemeal and it's gonna need some dedicated time and effort from somebody.
I found a work around for this. Previously I was using style.marginTop to vertical align my game container, now changed it to style.transform = "translate(...)" This seemed to do the trick. Game now scales properly. Probably using translate is a good practice as well. But there are loads games out there which use marginTop to vertical align.
Attachment #8652380 - Attachment mime type: text/plain → text/html
Both the test case from comment 6 and the game in comment 0 seem to be working fine now in the latest Nightly build. If there are still issues please file a new bug. Thanks!
Status: UNCONFIRMED → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.