fixed firefox issues with ".offsetHeight"