title: Fabricjs width and getWidth()
body: <p>I have an algorithm which is rendering an object with width and height. But when I use <code>setWidth()</code> that object doesn't actually get that width, it somehow gets something like x2 of the width I gave it. Check the code below:</p>
  
  <pre><code>    var width = canvas.getWidth();
      obj.setWidth(width);
      obj.setCoords();
      console.log(obj.getWidth());
      console.log(obj.width);
  </code></pre>
  
  <p>First log has wrong width "x2" and the second log has the correct width.</p>