title: kineticjs resize layer based on stage width
body: <p>I have a stage that resizes to the container width based on browser width (trying to make my project responsive but struggling).  I only have one layer and want the layer to resize based on the size of the stage. As of now the stage width changes with browser width but the layer width doesn't change, just gets cut off</p>
  
  <p>I've tried layer.setScale(x,y) in a window.onresize function but don't have enough math sense to use this to scale the layer as the stage width changes.
  I've also tried layer.setWidth(x) and used the stage width as a variable for x  in the same function but no luck. </p>
  
  <p>Shouldn't the layer automatically scale with the stage?  If I adjust the canvas size in firebug the layer auto scales, but that's the only time I get the correct response...</p>
  
  <p>By the way all the elements are polygons whose coordinates/points/etc are imported via svg/illustrator.  Not sure if that has anything to do with the prob...</p>
  
  <p>Totally stuck...</p>
  
  <p>Here's my project: <a href="http://cityunite.org/new" rel="nofollow">http://cityunite.org/new</a></p>