title: FabricJs 1.7.18 scaleToWidth() not setting the given width
body: <p>As per <a href="https://stackoverflow.com/a/46314590/3898364">this answer</a> I have built fabricJs version <strong>1.7.18</strong> with all features enabled - <a href="https://drive.google.com/file/d/1s34IX5tWDY6C6blxp3tidBcjO2oId08M/view?usp=sharing" rel="nofollow noreferrer">Built output file</a>.</p>
  
  <p>I am using the following code to change an object's width and height using scaleToWidth(), but the new width value is not set properly. It is setting the width with some other value.</p>
  
  <pre><code>var obj = canvas.getActiveObject();
  
  obj.scaleX = 1;
  obj.scaleY = 1;
  obj.scaleToWidth(65);
  obj.setCoords();
  
  canvas.renderAll();
  
  //This gives a different width value
  console.log(obj.getWidth()); 
  </code></pre>
  
  <p>Can anyone help me out to fix this issue?</p>
  
  <p>My actual requirement is:
  To set the height relatively when I am setting the object width.
  Example: 
  I have an object with width 50 and height 40. If I am setting the width as 100 using the function setWidth(), then is there any built-in function to set the height as 80?</p>