fixed fullscreen mode to work better with firefox
Merge branch 'master' into fullscreen-button