diff options
Diffstat (limited to 'src/viewbox.js')
-rw-r--r-- | src/viewbox.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/viewbox.js b/src/viewbox.js index b6ccfab..0e24e97 100644 --- a/src/viewbox.js +++ b/src/viewbox.js @@ -24,12 +24,12 @@ SVG.ViewBox = function(element) { } /* calculate zoom accoring to viewbox */ - this.scale = (this.width / this.height > width / height) ? + this.zoom = (this.width / this.height > width / height) ? this.height / height : this.width / width } else { - this.scale = 1 + this.zoom = 1 } }
\ No newline at end of file |