Automatic adjust for width and height.