diff options
| -rw-r--r-- | js/matrix.js | 4 |
1 files changed, 3 insertions, 1 deletions
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 |
