From 8b6aa11b597c7876ea22362c345a3120f4f25c27 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Sat, 11 May 2019 02:07:55 +0300 Subject: [PATCH] v 0.8.23b --- modules/ui/options.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/ui/options.js b/modules/ui/options.js index cca7b628..1ad06ac6 100644 --- a/modules/ui/options.js +++ b/modules/ui/options.js @@ -635,9 +635,9 @@ function changeMapSize() { const width = Math.max(svgWidth, graphWidth); const height = Math.max(svgHeight, graphHeight); zoom.translateExtent([[0, 0], [width, height]]); - landmass.select("rect").attr("width", width).attr("height", height); - oceanPattern.select("rect").attr("fill", "url(#oceanic)").attr("width", 0).attr("height", 0).attr("width", width).attr("height", height); - oceanLayers.select("rect").attr("id", "oceanBase").attr("width", 0).attr("height", 0).attr("width", width).attr("height", height); + landmass.select("rect").attr("x", 0).attr("y", 0).attr("width", width).attr("height", height); + oceanPattern.select("rect").attr("x", 0).attr("y", 0).attr("width", width).attr("height", height); + oceanLayers.select("rect").attr("x", 0).attr("y", 0).attr("width", width).attr("height", height); fitScaleBar(); }