aboutsummaryrefslogtreecommitdiffstats
path: root/web/nms.gathering.org/js/nms-map.js
diff options
context:
space:
mode:
authorNicolai Tellefsen <niccofyren@gmail.com>2016-03-19 23:21:10 +0100
committerNicolai Tellefsen <niccofyren@gmail.com>2016-03-20 11:26:09 +0100
commit193141d3e783ab15cf86a956d7533dcb80b0d02f (patch)
treec6c11b4139d3a8c03f9fd843439306770ee7b190 /web/nms.gathering.org/js/nms-map.js
parent38a97f8e3fa5a5a008ed591fc8b2fdfb6fef7abc (diff)
NMS: Fix disappearing BG on resizeEvent
Diffstat (limited to 'web/nms.gathering.org/js/nms-map.js')
-rw-r--r--web/nms.gathering.org/js/nms-map.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/web/nms.gathering.org/js/nms-map.js b/web/nms.gathering.org/js/nms-map.js
index 9bba1bf..3749a16 100644
--- a/web/nms.gathering.org/js/nms-map.js
+++ b/web/nms.gathering.org/js/nms-map.js
@@ -138,6 +138,9 @@ nmsMap._resizeEvent = function() {
continue;
nmsMap._c[a].c.height = nmsMap._canvas.height;
nmsMap._c[a].c.width = nmsMap._canvas.width;
+ if(a == 'bg') {
+ nmsMap._drawBG();
+ }
}
if (nmsMap._init != true) {
console.log("Drawing shit");