summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/matrix.js2
-rw-r--r--js/ui/controls.js4
2 files changed, 3 insertions, 3 deletions
diff --git a/js/matrix.js b/js/matrix.js
index 0695810..f661ceb 100644
--- a/js/matrix.js
+++ b/js/matrix.js
@@ -182,7 +182,7 @@ Matrix.prototype.resize = function(w,h){
this.h = h
this.bind && this.bind()
- if (this.rotated) { controls.rotate.use() }
+ if (this.rotated) { controls.rotate.use(this.rotated) }
}
//
diff --git a/js/ui/controls.js b/js/ui/controls.js
index 5b2e63d..3b9dfc4 100644
--- a/js/ui/controls.js
+++ b/js/ui/controls.js
@@ -208,9 +208,9 @@ var controls = (function(){
}
else {
canvas_rapper.parentNode.classList.remove("rotated")
- canvas_rapper.parentNode.style.height = (canvas_rapper.offsetHeight+20) + "px"
+ canvas_rapper.parentNode.style.height = ""
// canvas_rapper.parentNode.style.width = (canvas_rapper.offsetWidth+20) + "px"
- canvas_rapper.style.top = "auto"
+ canvas_rapper.style.top = ""
// canvas_rapper.style.left = "auto"
}
this.update(canvas.rotated)