Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

WV-1088: Height no longer forces mobile mode

Mike McGann94fecef723a8
diff --git a/web/css/wv.mobile.css b/web/css/wv.mobile.css
index 492f30345..ea5168b9d 100644
--- a/web/css/wv.mobile.css
+++ b/web/css/wv.mobile.css
@@ -1,4 +1,5 @@
-@media only screen and (max-width: 720px) and (orientation: portrait), only screen and (max-height: 320px) and (orientation: landscape), only screen and (device-aspect-ratio: 2/3) and (orientation:portrait), only screen and (device-aspect-ratio:40/71) and (orientation:portrait){
+/*@media only screen and (max-width: 720px) and (orientation: portrait), only screen and (max-height: 320px) and (orientation: landscape), only screen and (device-aspect-ratio: 2/3) and (orientation:portrait), only screen and (device-aspect-ratio:40/71) and (orientation:portrait){ */
+@media only screen and (max-width: 720px) {
.products {
display:block;
float:left;
diff --git a/web/js/layers/wv.layers.sidebar.js b/web/js/layers/wv.layers.sidebar.js
index e62317a95..5151c76a0 100644
--- a/web/js/layers/wv.layers.sidebar.js
+++ b/web/js/layers/wv.layers.sidebar.js
@@ -262,7 +262,6 @@ wv.layers.sidebar = wv.layers.sidebar || function(models, config) {
if ( !mobile && wv.util.browser.small ) {
self.collapseNow();
mobile = true;
-
} else if ( mobile && !wv.util.browser.small ) {
self.expandNow();
mobile = false;
diff --git a/web/js/wv.main.js b/web/js/wv.main.js
index 9a3e1776d..5c94712ca 100644
--- a/web/js/wv.main.js
+++ b/web/js/wv.main.js
@@ -136,7 +136,7 @@ $(function() {
models.link.register(models.data);
}
// HACK: Map needs permalink state loaded before starting. But
- // data download now needs it too.
+ // data download now needs it too.
models.link.load(state);
if ( config.features.arcticProjectionChange ) {