     {
         if (_resizable)
         {
+            xResizeStart = event.stageX
+            yResizeStart = event.stageY;
+
             /*TODO: for now, it can't be resized when is not basic layout*/
             stage.addEventListener(MouseEvent.MOUSE_MOVE, resize_moveHandler);
             stage.addEventListener(MouseEvent.MOUSE_UP, resize_upHandler);

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

        var nextWidth:Number = stage.stageWidth - (stage.mouseX + parent.x);
        var nextHeight:Number = (stage.mouseY - parent.y);

        if (stage.mouseX > 20 && (stage.mouseY < stage.height - 20))
        {
            if (nextWidth > minimumResizeWidth)
            {
                width = nextWidth;
            }
            if (nextHeight > minimumResizeHeight)
            {
                height = nextHeight;
            }
        }
    }


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

            var futureWidth:Number = widgetWidth + deltaX;
            var futureHeight:Number = widgetHeight + deltaY;

            if (futureWidth > minimumResizeWidth)
            {
                width = futureWidth;
            }
            if (futureHeight > minimumResizeHeight)
            {
                height = futureHeight;
            }
        }
    }
