diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-03-09 22:51:17 +0100 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-03-09 22:51:17 +0100 |
commit | 1e6af7da2fbe0904a116e3fc0a6f4726660f3d63 (patch) | |
tree | 992c988aeb46c8e6355438b0fe405077d711ec0c /dist/svg.js | |
parent | 8fae69fd8f66592a5001f03b043c40f8a2bfc8bd (diff) | |
download | svg.js-1e6af7da2fbe0904a116e3fc0a6f4726660f3d63.tar.gz svg.js-1e6af7da2fbe0904a116e3fc0a6f4726660f3d63.zip |
fix bug in box when box with top and left is given which is 0 (#632)
Diffstat (limited to 'dist/svg.js')
-rw-r--r-- | dist/svg.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dist/svg.js b/dist/svg.js index 92dee8c..b1c94db 100644 --- a/dist/svg.js +++ b/dist/svg.js @@ -6,7 +6,7 @@ * @copyright Wout Fierens <wout@mick-wout.com> * @license MIT * -* BUILT: Thu Mar 09 2017 12:29:50 GMT+0100 (Mitteleuropäische Zeit) +* BUILT: Thu Mar 09 2017 22:47:39 GMT+0100 (Mitteleuropäische Zeit) */; (function(root, factory) { if (typeof define === 'function' && define.amd) { @@ -2168,7 +2168,7 @@ SVG.Box = SVG.invent({ create: function(x, y, width, height) { if (typeof x == 'object' && !(x instanceof SVG.Element)) { // chromes getBoundingClientRect has no x and y property - return SVG.Box.call(this, x.left || x.x, x.top || x.y, x.width, x.height) + return SVG.Box.call(this, x.left != null ? x.left : x.x , x.top != null ? x.top : x.y, x.width, x.height) } else if (arguments.length == 4) { this.x = x this.y = y |