# ScrollPane width and height

**URL:** <https://forum.kirupa.com/t/scrollpane-width-and-height/267799>\
**Category:** flash\
**Created:** [August 5, 2008, 8:47pm UTC](https://forum.kirupa.com/t/scrollpane-width-and-height/267799 "2008-08-05T20:47:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jellystones](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jellystones/32/3999_2.png) [@jellystones](https://forum.kirupa.com/u/jellystones)\
**Post date:** [August 5, 2008, 8:47pm UTC](https://forum.kirupa.com/t/scrollpane-width-and-height/267799/1 "2008-08-05T20:47:06Z")

</div>

Hi, im having problems with the scrollpane width and height not being reflected in its parent DisplayObjectContainer.

Example:

```auto
 
package{
import fl.containers.ScrollPane;
import flash.display.*;
 public class ScrollPaneDimensionsTest extends Sprite{
 
  public function ScrollPaneDimensionsTest(){
   var sp:ScrollPane = new ScrollPane();
   sp.setSize(200, 200);
 
   var sprite:Sprite = new Sprite();
   sprite.addChild(sp);
 
   trace(sp.width); //prints 200
   trace(sp.height); //prints 200
   trace(sprite.width); //prints 115!?!?!?!
   trace(sprite.height); //prints 115!?!?!?!
  }
 
 }
}

```

Any ideas why this is printing 115 instead of 200?
