diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-06-23 02:33:26 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-06-23 02:33:26 -0400 |
| commit | bff03a8d7cec99b01e9967c0784b6ee6f4ed1703 (patch) | |
| tree | 129bca55c1f64d77531df51726152b4cb7302067 /js | |
| parent | e5afc28fa989720173310ef7ccc9cb7fcd52c07a (diff) | |
rotation
Diffstat (limited to 'js')
| -rw-r--r-- | js/matrix.js | 2 | ||||
| -rw-r--r-- | js/ui/controls.js | 4 |
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) |
