title: Fabric.js: Canvas with 100% width possible?
body: <p>When using 'canvas = new fabric.Canvas('foo')', Fabric converts the canvas element that has a css class with width=100% attached to it into something like that:</p>
  
  <pre><code>&lt;div class="canvas-container" style="position: relative" width="293px"&gt;
    &lt;canvas class="upper-canvas"&gt;&lt;/canvas&gt;
    &lt;canvas class="lower-canvas" id="c"&gt;&lt;/canvas&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>The wrapping div as well as both canvas elements are getting style tags and fixed width/height. In terms of initialization, I´ve only found canvas.setWdith which only takes numeric values though (no percent values).</p>
  
  <p>Is there a way to initialize Fabric to respect/use the given 100% width?</p>
  
  <p>Update:
  Example: <a href="http://jsfiddle.net/thomasf1/kb2Hp/">http://jsfiddle.net/thomasf1/kb2Hp/</a></p>