Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Fix height re-calculation bug

Jo Sprague36c369a2a5ff
diff --git a/web/js/layers/wv.layers.modal.js b/web/js/layers/wv.layers.modal.js
index 25d808c2c..de3a9c803 100644
--- a/web/js/layers/wv.layers.modal.js
+++ b/web/js/layers/wv.layers.modal.js
@@ -166,8 +166,10 @@ wv.layers.modal = wv.layers.modal || function(models, ui, config) {
height: modalHeight,
width: modalWidth
}).promise().done(function() {
- // Set reactList width to modalWidth, minus padding
- if(self.reactList) self.reactList.setState({width: modalWidth - 20});
+ if(self.reactList) self.reactList.setState({
+ width: modalWidth - 20, // Set reactList width to modalWidth, minus padding
+ height: modalHeight - $('#layer-modal > header').outerHeight() - $breadcrumb.outerHeight()
+ });
});
$('#layer-modal-main').css('height', modalHeight - 40).perfectScrollbar('update');
};