prova con
document.getElementById('id_livello').offsetHeight
dovrebbe restituirti l' effettiva altezza del livello
ciao