Profile: Fix missing tabs after switching (#1082)

This commit is contained in:
Alexander Zinchuk 2021-05-12 15:28:29 +03:00
parent 0cbb3203a7
commit ce3b908464

View File

@ -226,6 +226,7 @@ const Transition: FC<OwnProps & StateProps> = ({
if (activeElement) { if (activeElement) {
activeElement.style.height = 'auto'; activeElement.style.height = 'auto';
container.style.height = `${activeElement.clientHeight}px`; container.style.height = `${activeElement.clientHeight}px`;
container.style.flexBasis = `${activeElement.clientHeight}px`;
} }
} }
}, [shouldRestoreHeight, children]); }, [shouldRestoreHeight, children]);