Interactive interface for browsing global, full-resolution satellite imagery
WV-1522 Fixed scrollbar in data download
Taylor Gunnoe7e90e996fdf0
diff --git a/web/css/dataDownload.css b/web/css/dataDownload.cssindex ea8d7b24b..50555fa24 100644--- a/web/css/dataDownload.css+++ b/web/css/dataDownload.css@@ -1,6 +1,6 @@#wv-data{- overflow:scroll;+ position: relative;}#wv-data-selection ul {display: list;diff --git a/web/css/wv.sidebar.css b/web/css/wv.sidebar.cssindex 82b0dcff5..dcd4c2f51 100644--- a/web/css/wv.sidebar.css+++ b/web/css/wv.sidebar.css@@ -69,10 +69,10 @@background-image:none;}/* perfect scrollbars */-#products .ps-scrollbar-y-rail{+#productsHolder .ps-scrollbar-y-rail{background-color: transparent;margin-top:5px;}-#products .ps-scrollbar-y {+#productsHolder .ps-scrollbar-y {background:#ccc;}\ No newline at end of filediff --git a/web/js/data/wv.data.ui.js b/web/js/data/wv.data.ui.jsindex 700ebc41b..b01e3a346 100644--- a/web/js/data/wv.data.ui.js+++ b/web/js/data/wv.data.ui.js@@ -182,6 +182,7 @@ wv.data.ui = wv.data.ui || function(models, ui, config) {}sizeDownloadTab();};+ var productsIsOverflow = false;var sizeDownloadTab = function(){var winSize = $(window).outerHeight(true);var headSize = $("ul#productsHolder-tabs").outerHeight(true);//@@ -195,13 +196,11 @@ wv.data.ui = wv.data.ui || function(models, ui, config) {var maxHeight = winSize - headSize - footSize -offset.top - timeSize - secSize - 10 - 5;$(self.selector).css("max-height", maxHeight);- /*- var childrenHeight = $('ul#overlays').outerHeight(true) +- $('ul#baselayers').outerHeight(true);- //console.log(maxHeight, childrenHeight);++ var childrenHeight = $('#wv-datacontent').outerHeight(true);if((maxHeight <= childrenHeight)) {- $("#products").css('height', maxHeight)+ $("#wv-data").css('height', maxHeight).css('padding-right', '10px');if(productsIsOverflow){$(self.selector).perfectScrollbar('update');@@ -212,14 +211,14 @@ wv.data.ui = wv.data.ui || function(models, ui, config) {}}else{- $("#products").css('height', '')+ $("#wv-data").css('height', '').css('padding-right', '');if(productsIsOverflow){$(self.selector).perfectScrollbar('destroy');productsIsOverflow = false;}}- */+};self.onViewChange = function() {var indicator;diff --git a/web/js/layers/wv.layers.active.js b/web/js/layers/wv.layers.active.jsindex 10324c593..f34a53a95 100644--- a/web/js/layers/wv.layers.active.js+++ b/web/js/layers/wv.layers.active.js@@ -267,7 +267,7 @@ wv.layers.active = wv.layers.active || function(models, ui, config) {var footSize = $("section#productsHolder footer").outerHeight(true);var secSize = $("#productsHolder").innerHeight() - $("#productsHolder").height();var offset = $("#productsHolder").offset();- var timeSize = $("#timeline").outerHeight(true); // + $("#timeline").offset()['top'];+ var timeSize = $("#timeline").outerHeight(true);var maxHeight;//FIXME: -10 here is the timeline's bottom position from page, fix