Permalink
Browse files

Fix for Chrome Beta (for Android)

  • Loading branch information...
1 parent d298080 commit 268314440becb20f768f4dea963d9c0c12bbdf6e Christoph Martens committed Mar 14, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/viewporter.js
View
@@ -40,7 +40,8 @@ var viewporter;
var that = this;
- this.IS_ANDROID = /Android/.test(navigator.userAgent);
+ // Scroll away the header, but not in Chrome
+ this.IS_ANDROID = /Android/.test(navigator.userAgent) && !/CrMo/.test(navigator.userAgent);
var _onReady = function() {
@@ -104,8 +105,8 @@ var viewporter;
// if we're running in webapp mode (iOS), there's nothing to scroll away
if(navigator.standalone) {
- return this.postProcess();
- }
+ return this.postProcess();
+ }
// maximize the document element's height to be able to scroll away the url bar
document.documentElement.style.minHeight = '5000px';

0 comments on commit 2683144

Please sign in to comment.