Working around inner window height in Plnkr.

Added more calculations for total and column height.