Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

Commit

Permalink
Android screen dimensions always return false in mwf.screen [fixes #157]
Browse files Browse the repository at this point in the history
  • Loading branch information
ebollens committed Sep 1, 2012
1 parent f57b04d commit 0ae5709
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion root/assets/js/core/screen.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions root/assets/js/core/screen.src.js
Expand Up @@ -24,13 +24,13 @@ mwf.screen = new function() {
var ws = window.screen;

/**
* Bug in Android 2.2-3 prevents it from returning accurate screen
* Bug in Android prevent it from returning accurate screen
* dimensions, so bypass inaccurate values with false instead.
*
* @compat Android 2.2-3
* @compat Android
*/
var version = mwf.userAgent.getOSVersion();
if(mwf.userAgent.getOS() == 'android' && (version.indexOf('2.2') == 0 || version.indexOf('2.3') == 0)) {
if(mwf.userAgent.getOS() == 'android') {
ws = {width:false,height:false}
}

Expand Down

0 comments on commit 0ae5709

Please sign in to comment.