reset width and height if it is fully wrap content