Fix broken animation of Menu and Collapse

This commit is contained in:
afc163 2017-12-08 22:25:50 +08:00
parent f780759f91
commit edd592cb9d

View File

@ -13,7 +13,7 @@ function animate(node: HTMLElement, show: boolean, done: () => void) {
node.style.opacity = '1';
} else {
height = node.offsetHeight;
node.style.height = '0 px';
node.style.height = '0px';
node.style.opacity = '0';
}
},