{
        var nw = $obj.width(), nh = $obj.height();
        if ((nw > w) && w > 0)
        {
            nw = w;