         var ownerVisualElement:ILayoutElement = owner as ILayoutElement;
         var ownerWidth:Number = (ownerVisualElement) ? ownerVisualElement.getLayoutBoundsWidth() : owner.width;
         var ownerHeight:Number = (ownerVisualElement) ? ownerVisualElement.getLayoutBoundsHeight() : owner.height;
+        var calloutWidth:Number = getLayoutBoundsWidth();
+        var calloutHeight:Number = getLayoutBoundsHeight();
 
         switch (horizontalPos)
         {

            case CalloutPosition.END:
            {
                // The ends of the owner and callout are aligned
                registrationPoint.x = (ownerWidth - width);
                break;
            }
            case CalloutPosition.AFTER:

    {
        // Screen resize might require a new arrow direction and callout position
        invalidatePosition();
        determineMaxSize(owner);
    }
}
}