Allow the parent container to use max-height

* If the parent container has a max-height, the content will
  check for it and explicity set the height of the parent
  during the reset.  If it is smaller than the max height, it will
  just resize the parent to the size of it's contents.  This will
  ensure that the parent container only scrolls once it gets to
  a certain size.