Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get full fullscreen in Firefox #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mojavelinux
Copy link

Firefox steals away 1px of the screen to receive events in fullscreen. (See https://bugzilla.mozilla.org/show_bug.cgi?id=729011). Detect this scenario and calculate the scale values accordingly.

Using the window.outerWidth/Height properties also works around the incremental resizing that occurs when Firefox transitions into fullscreen (due to its own transition on the chrome).

Firefox steals away 1px of the screen to receive events in fullscreen.
(See https://bugzilla.mozilla.org/show_bug.cgi?id=729011).
Detect this scenario and calculate the scale values accordingly.

Using the window.outerWidth/Height properties also works around the
incremental resizing that occurs when Firefox transitions into
fullscreen.
@mojavelinux
Copy link
Author

Note that window.fullScreen is only recognized by Firefox, which is all we need to solve this problem.

@mojavelinux
Copy link
Author

It appears the root cause no longer exists as of Firefox 40. They seem to have changed the way that fullscreen works. I think the change is still worth doing, but it may be less of a priority now.

@mojavelinux
Copy link
Author

Actually, never mind. It just seems that it only happens in some windows. In other windows I still get 1px less than the screen height. I'll keep digging to see if I can figure out the terms of the condition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant