Treating max-height (without bugs)