Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

fix for iOS 7.0 safari

Taylor Gunnoe53080aa9f3c9
diff --git a/src/js/util/wv.util.browser.js b/src/js/util/wv.util.browser.js
index 2f80951bd..b09ba0652 100644
--- a/src/js/util/wv.util.browser.js
+++ b/src/js/util/wv.util.browser.js
@@ -389,6 +389,7 @@ if (!String.prototype.endsWith) {
$(".layerPicker a[href='#DataDownload']").hide();
}
window.scrollTo(0, 1);
+ $("#app, .ui-mobile, .ui-mobile .ui-page").css("min-height", 0);
}, false);
addEventListener("orientationchange", function() {
setHeight();
@@ -399,7 +400,7 @@ if (!String.prototype.endsWith) {
// Set the div height
function setHeight($body) {
if (navigator.userAgent.match(/(iPad|iPhone|iPod touch);.*CPU.*OS 7_\d/i)){
- $("div#app.ui-page.ui-body-c.ui-page-active").css("min-height", 0);
+ $("#app, .ui-mobile, .ui-mobile .ui-page").css("min-height", 0);
}
else {
var new_height = $(window).height();