title: Getting SVG container size in snapSVG?
body: <p>What is the correct way to get the size of the 'paper' object with SnapSVG, as soon as it has been created?</p>
  
  <p>My HTML looks something as follows:</p>
  
  <pre><code>&lt;div id="myContainer" style="width: 900px; height: 100px" /&gt;
  </code></pre>
  
  <p>And then the Javascript code:</p>
  
  <pre><code>function initViewer(elementId) {
      var element, elementRef, snap;
      elementRef = '#' + elementId;
      element = $(elementRef);
      element.append('&lt;svg style="width: ' + element.width() + 'px; height: ' + element.height() + 'px; border: solid 1px black;"/&gt;');
      snap = Snap(elementRef + ' svg');
      console.log(snap.getBBox());
  }
  </code></pre>
  
  <p>What I observe here is the bounding box has '0' for all attributes, so I can't rely on the bounding box values here. Are there any ways of doing this, without have to go to a parent element?</p>
  
  <p>What I am essentially wanting form all this is the width and the height of the SVG, so I can draw the shapes of the appropriate size for the view.</p>
  
  <p>JS Fiddle, illustrating the issue: <a href="https://jsfiddle.net/ajmas/kdnx2eyf/1/" rel="nofollow">https://jsfiddle.net/ajmas/kdnx2eyf/1/</a></p>