Applied some magical JavaScript tricks to ensure the components height fits in the page.