From 72a690a40dd1727065e28b1ce0bca743283f54c7 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 13 Jul 2015 07:43:14 -0400 Subject: fix select mode resizing body --- js/matrix.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'js/matrix.js') diff --git a/js/matrix.js b/js/matrix.js index f6d7e5a..b6fb765 100644 --- a/js/matrix.js +++ b/js/matrix.js @@ -182,7 +182,9 @@ Matrix.prototype.resize = function(w,h){ this.h = h this.bind && this.bind() - this.rapper && this.resize_rapper() + if (this.rapper && this.rapper.parentNode != document.body) { + this.resize_rapper() + } } Matrix.prototype.resize_rapper = function(){ var cell = canvas.aa[0][0].span -- cgit v1.2.3-70-g09d2