Interactive interface for browsing global, full-resolution satellite imagery
fix cut off svg stroke with viewbox
Ed Plato3b91c89952f7
diff --git a/web/css/timeline.css b/web/css/timeline.cssindex 5243a7437..faee993a9 100644--- a/web/css/timeline.css+++ b/web/css/timeline.css@@ -390,6 +390,7 @@ g.plot rect.data-bar-invisible {#timeline-footer > svg {overflow-y: hidden;+ margin-top: -23px;}#wv-rangeselector-case > .wv-timeline-range-selector {diff --git a/web/js/date/timeline.js b/web/js/date/timeline.jsindex 1db016b5a..6d9763aa9 100644--- a/web/js/date/timeline.js+++ b/web/js/date/timeline.js@@ -99,7 +99,8 @@ export function timeline(models, config, ui) {if (self.enabled) {self.getWidth();- self.svg.attr('width', self.width);+ self.svg.attr('width', self.width)+ .attr('viewBox', '0 -7 ' + self.width + ' ' + (self.height + self.margin.top + self.margin.bottom + 26));d3.select('#timeline-boundary rect').attr('width', self.width);@@ -133,7 +134,8 @@ export function timeline(models, config, ui) {self.svg = d3.select('#timeline-footer').append('svg:svg').attr('width', self.width) // + margin.left + margin.right)- .attr('height', self.height + self.margin.top + self.margin.bottom + 32);+ .attr('height', self.height + self.margin.top + self.margin.bottom + 26)+ .attr('viewBox', '0 -7 ' + self.width + ' ' + (self.height + self.margin.top + self.margin.bottom + 26));self.svg.append('svg:defs')