diff --git a/lib/forcegraph.js b/lib/forcegraph.js index fa01ebc..0281084 100644 --- a/lib/forcegraph.js +++ b/lib/forcegraph.js @@ -705,6 +705,8 @@ define(["d3"], function (d3) { self.render = function (d) { d.appendChild(el) + resizeCanvas() + updateHighlight() } return self diff --git a/lib/map.js b/lib/map.js index 32c9f99..bcab1a8 100644 --- a/lib/map.js +++ b/lib/map.js @@ -441,6 +441,7 @@ define(["map/clientlayer", "map/labelslayer", self.render = function (d) { d.appendChild(el) + map.invalidateSize() } return self