Created by: deilv
Reseting the element height causes a malfunction to the animation if the collapsible block is not placed inside a .container or any other class that adjusts the padding. In such cases if height is auto, then offsetHeight is equal to 0, so the collapse animation starts from zero.