protected override void HandleSizeChanged()
{
base.HandleSizeChanged();
if (scrollPane != null)
scrollPane.OnOwnerSizeChanged();
if (rootContainer.clipRect != null)
UpdateClipRect();
if (rootContainer.hitArea is PixelHitTest)
{
PixelHitTest test = (PixelHitTest)rootContainer.hitArea;
if (sourceWidth != 0)
test.scaleX = this.width / this.sourceWidth;
if (sourceHeight != 0)
test.scaleY = this.height / this.sourceHeight;
}
}