diff options
Diffstat (limited to 'src/ellipse.js')
-rw-r--r-- | src/ellipse.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ellipse.js b/src/ellipse.js index d897969..006f89f 100644 --- a/src/ellipse.js +++ b/src/ellipse.js @@ -20,7 +20,7 @@ SVG.extend(SVG.Ellipse, { // custom size function size: function(w, h) { return this. - attr({ rx: w / 2, ry: h / 2 }). + attr({ rx: w / 2, ry: (h != null ? h : w) / 2 }). center(); }, |