summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-07-13 07:43:14 -0400
committerJules Laplace <jules@okfoc.us>2015-07-13 07:43:14 -0400
commit72a690a40dd1727065e28b1ce0bca743283f54c7 (patch)
treedc464122d3bf1e029a70ee3bfc7672f85f8b0a42 /js
parent600f28f73e13f5351f870833a0fd0dccba51afed (diff)
fix select mode resizing body
Diffstat (limited to 'js')
-rw-r--r--js/matrix.js4
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