diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2016-08-02 18:44:48 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2016-08-02 18:44:48 +0200 |
commit | 86c99607a393b43aeb50979e97ab69853293847f (patch) | |
tree | ea7daa70947062326e8eea3c0c31cc09da4c88bd /src/boxes.js | |
parent | 90f8ac60071148d41c209fd0114df1dc1f40e8d8 (diff) | |
download | svg.js-86c99607a393b43aeb50979e97ab69853293847f.tar.gz svg.js-86c99607a393b43aeb50979e97ab69853293847f.zip |
fixed #514 and #5162.3.3
- removed `SVG.Text.clone()` which is inherited by `SVG.Element.clone()`
- make element visible when call bbox on a clone
Diffstat (limited to 'src/boxes.js')
-rw-r--r-- | src/boxes.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boxes.js b/src/boxes.js index 1e9d0eb..989a69e 100644 --- a/src/boxes.js +++ b/src/boxes.js @@ -15,7 +15,7 @@ SVG.BBox = SVG.invent({ box = element.node.getBBox() } catch(e) { if(element instanceof SVG.Shape){ - var clone = element.clone(SVG.parser.draw) + var clone = element.clone(SVG.parser.draw).show() box = clone.bbox() clone.remove() }else{ |