views:

18

answers:

1

How in Javascript can we tell if the current browser is in fullscreen mode? is there an exact ratio of width/height i can depend on to measure this? Im hoping to have that info for Opera Mobile since it acts odd when it goes in full screen, it doesnt auto hide the small buttons at the bottom which means part of my bottom navigation is hidden away!

A: 

I would check whether the user's resolution and viewport are within 30px or so. Measure the full screen chrome and minus that from the resolution to see if the viewport size is similar.

That is just a guess and not reliable.

alex
after some time researching this is indeed the only way to do it
Ayyash