Updatete MaxWidth and MaxHeight