Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

Add padding that is passed to component state

Taylor Gunnoe9ad13baf543e
diff --git a/web/js/layers/wv.layers.modal.js b/web/js/layers/wv.layers.modal.js
index 24359d010..822640c09 100644
--- a/web/js/layers/wv.layers.modal.js
+++ b/web/js/layers/wv.layers.modal.js
@@ -166,7 +166,7 @@ wv.layers.modal = wv.layers.modal || function(models, ui, config) {
modalWidth = gridItemWidth * sizeMultiplier + 10;
if(self.reactList)
self.reactList.setState({
- width: modalWidth,
+ width: modalWidth - 20,
height: modalHeight - $('#layer-modal > header').outerHeight() -
$breadcrumb.outerHeight()
});
@@ -706,7 +706,7 @@ wv.layers.modal = wv.layers.modal || function(models, ui, config) {
config: config,
metadata: self.metadata,
model: model,
- width: modalWidth,
+ width: modalWidth - 20, //padding
height: modalHeight - $('#layer-modal > header').outerHeight() -
30 // size of breadcrumb, on initial render it doesnt have a height
});