expanded getHeight function to account for auto-lock-off custom alignments, icons