Change max-height function to take into consideration any padding applied to the DIV container