From eb8f1dd2a4f3ddfae94bd98cc0e8a29cce283622 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Sun, 12 Jul 2015 00:42:24 +0200 Subject: [PATCH] map/graph: redraw on render --- lib/forcegraph.js | 2 ++ lib/map.js | 1 + 2 files changed, 3 insertions(+) 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