set max-height to 2*height so that content (e.g error msg) can be appended somewhat safely