Recalculate box heights on window resize

Closes #10, #19, and #23