From bff03a8d7cec99b01e9967c0784b6ee6f4ed1703 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 23 Jun 2015 02:33:26 -0400 Subject: rotation --- js/matrix.js | 2 +- js/ui/controls.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'js') 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) -- cgit v1.2.3-70-g09d2