Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

WV-779 - Fix for mobile android

Taylor Gunnoe68fac40c66f4
diff --git a/src/js/util/wv.util.browser.js b/src/js/util/wv.util.browser.js
index bc3e8719d..50731ca67 100644
--- a/src/js/util/wv.util.browser.js
+++ b/src/js/util/wv.util.browser.js
@@ -410,7 +410,10 @@ if (!String.prototype.endsWith) {
// Set the div height
function setHeight($body) {
- if (navigator.userAgent.match(/(iPad|iPhone|iPod touch);.*CPU.*OS 7_\d/i)){
+ var nua = navigator.userAgent;
+ if ((navigator.userAgent.match(/(iPad|iPhone|iPod touch);.*CPU.*OS 7_\d/i))
+ || (nua.indexOf('Mozilla/5.0') > -1 && nua.indexOf('Android ') > -1 && nua.indexOf('AppleWebKit') > -1) && !(nua.indexOf('Chrome') > -1)
+ ){
$("#app, .ui-mobile, .ui-mobile .ui-page").css("min-height", 0);
}
else {