Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fixed height issue on Chrome

Taylor Gunnoeb6c8751f1897
diff --git a/src/js/Worldview/Support.js b/src/js/Worldview/Support.js
index fbeffdab7..6b6833ada 100644
--- a/src/js/Worldview/Support.js
+++ b/src/js/Worldview/Support.js
@@ -152,11 +152,13 @@ Worldview.namespace("Support");
$body.css('height', new_height );
}
}
+ if (navigator.userAgent.match(/(iPad|iPhone|iPod touch);.*CPU.*OS 7_\d/i)){
+ setHeight( $('#app') );
+ $(window).resize(function() {
+ setHeight($('#app'));
+ });
+ }
- setHeight( $('#app') );
- $(window).resize(function() {
- setHeight($('#app'));
- });
};