Browse Source

Fix SVG's rect

pull/487/head
Artur Arseniev 8 years ago
parent
commit
351e9112f0
  1. 6
      src/canvas/view/CanvasView.js

6
src/canvas/view/CanvasView.js

@ -289,8 +289,10 @@ module.exports = Backbone.View.extend({
return { return {
top, top,
left, left,
height: el.offsetHeight,
width: el.offsetWidth // clientHeight/clientWidth are for SVGs
height: el.offsetHeight || el.clientHeight,
width: el.offsetWidth || el.clientWidth,
}; };
}, },

Loading…
Cancel
Save