Fixed an issue caused by a discrepancy in firefox’s scrollHeight parameter.