Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

WV-1373 refix firefox overflow issues with svg

Taylor Gunnoe7400a2f86704
diff --git a/web/js/date/wv.date.timeline.config.js b/web/js/date/wv.date.timeline.config.js
index a669db133..1fb16484d 100644
--- a/web/js/date/wv.date.timeline.config.js
+++ b/web/js/date/wv.date.timeline.config.js
@@ -548,6 +548,7 @@ wv.date.timeline.config = wv.date.timeline.config || function(models, config, ui
});
//Default zoom
self.zoom(3);
+ tl.setClip(); //fix for firefox svg overflow
};
init();
diff --git a/web/js/date/wv.date.timeline.js b/web/js/date/wv.date.timeline.js
index 9424d4bae..c73c4917a 100644
--- a/web/js/date/wv.date.timeline.js
+++ b/web/js/date/wv.date.timeline.js
@@ -131,7 +131,7 @@ wv.date.timeline = wv.date.timeline || function(models, config, ui) {
};
- var setClip = function(){ //This is a hack until Firefox fixes their svg rendering problems
+ self.setClip = function(){ //This is a hack until Firefox fixes their svg rendering problems
d3.select('#timeline-footer svg > g:nth-child(2)').attr('visibility', 'hidden');
d3.select('#timeline-footer svg > g:nth-child(2)').attr('style','');
setTimeout(function(){
@@ -220,7 +220,7 @@ wv.date.timeline = wv.date.timeline || function(models, config, ui) {
$(window).resize(function(){
self.resize();
self.zoom.refresh();
- setClip();
+ self.setClip();
});
model.events.on("select", function(){