         // clear constraints
         var widget:UIComponent = parent as UIComponent;
         widget.left = widget.right = widget.top = widget.bottom = undefined;
+
+        xResizeEnd = event.stageX
+        yResizeEnd = event.stageY;
+
         if (isRtl())
         {
             resize_moveHandler_rtl();


        if ((stage.mouseX < stage.width - 20) && (stage.mouseY < stage.height - 20))
        {
            if ((stage.mouseX - parent.x) > minimumResizeWidth)
            {                 
                width = (stage.mouseX - (stage.stageWidth - parent.parent.width + parent.x));
            }
            if ((stage.mouseY - parent.y) > minimumResizeHeight)
            {
                height = (stage.mouseY - parent.y);
            }
        }
    }

        const minimumResizeWidth:Number = minWidth ? minWidth : 200;
        const minimumResizeHeight:Number = minHeight ? minHeight : 100;

        if (stage.mouseX > 20 && (stage.mouseY < stage.height - 20))
        {
            var deltaX:Number = xResizeEnd - xResizeStart;
            var deltaY:Number = yResizeEnd - yResizeStart;

            var calculatedWidth:Number = widgetWidth + deltaX;
            var calculatedHeight:Number = widgetHeight + deltaY;

            if (calculatedWidth > minimumResizeWidth)
            {
                width = calculatedWidth;
            }
            if (calculatedHeight > minimumResizeHeight)
            {
                height = calculatedHeight;
            }
        }
    }
