Hi, im having problems with the scrollpane width and height not being reflected in its parent DisplayObjectContainer.
Example:
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?