Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- updateAccordionHeight = () => {
- let panelHeight =
- document.getElementsByClassName('panel-group')[0].clientHeight -
- READ_CLEAR_HEIGHT;
- Array.from(document.getElementsByClassName('panel-heading')).forEach(
- panel => {
- panelHeight -= panel.offsetHeight;
- }
- );
- this.setState({ panelHeight });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement