set max-height instead of height.