Fix window resize

Update on browser resize

This is a fix for setting the max-height when specifying the value in css (for responsive styling).
Before, the max-height value was only overriden when using a percentage-based value. The update will also set the max-height when using a pixel-based value.