Fix problem with auto height and width.