Ensure maxHeight is an integer, can be a string if pulled from the element's CSS