Javascript Dynamically Created Bootstrap Modal Gets Wrong Height

Javascript Dynamically Created Bootstrap Modal Gets Wrong Height