Jump to content

wrong window.innerHeight with Firefox 26 (android)?


alex
 Share

Recommended Posts

Hi,

 

I have a problem with the latest firefox (android) release. I seems that the innerheight is wrong and reports the size of the whole window without the adressbar - but the adressbar is still visible...

 

e.g. s4 in landscape mode:

starting game with innerheigt 287 (seems okay)

than I am getting a resize event and now the innerheight is 335 (would be correct if the top/adress bar disappeard, but it is still there...)

(using <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">)

 

Maybe the error is somewhere else and my code is wrong but it works for chrome, stock browser and safari (ios)...

 

Thanks, alex

Link to comment
Share on other sites

Yeah, I got a similar issue

http://stackoverflow.com/questions/19162794/browser-window-height-on-mobile-firefox-v23

 

no one gave me any clues, I suspect is is to do with the scaling/zooming being worked out in some 'virtual pixels' way, I had a few problems with absolute positioning of html elements in FF on android.

 

sorry can't be more helpful, but you're not alone.

Link to comment
Share on other sites

>>but you're not alone

 

Good to know :)

 

Maybe I can describe my problem a little more in detailed:

I think the problem with the  wrong innerHeight started some time ago - maybe with firefox 23...

First I tried to ignore  the resize event. But this wasn't a good solution and I changed the body height to 'auto' - before that it was >100% because of an safari/ios issue -

So this wrong(?) resize event wasn't triggered anymore and I was happy.

But now the resize event is triggered again and causing again some trouble...

Link to comment
Share on other sites

  • 5 months later...

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...