title: Set sprite width or height without scaling it's children
body: <p>I am trying to dynamically change the <code>width</code> and <code>height</code> of a Sprite object, which is a container for other similar Sprite objects. The container object automatically changes it's size according to the size of it's children, but when I change the position of the children objects, the size of the container stays the same and it's children appear to be placed outside of the container.</p>
  
  <p>I tried to solve this problem by using something like this:</p>
  
  <pre><code>if (container.width &lt; (child.x + child.width))
  {
      container.width = (child.x + child.width);
  }
  </code></pre>
  
  <p>But when I use this code, the container object's children are scaled.<br>
  Is there a way to change the container's size without scaling it's children?</p>