Fix auto height no non-page-reload

Update caters for situation that could alter an element's height without a page reload