calculate height after rendering last block
No JS to work on pure