Added onHeightChanged call

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-02-05 08:29:24 +01:00
parent ad5c8fe7e4
commit 77248725ed
No known key found for this signature in database
GPG key ID: 9760693FDD98A790

View file

@ -147,6 +147,10 @@ export default class TextualBody extends React.Component {
pre.className = "mx_EventTile_collapsedCodeBlock"; pre.className = "mx_EventTile_collapsedCodeBlock";
button.className += "mx_EventTile_expandButton"; button.className += "mx_EventTile_expandButton";
} }
// By expanding/collapsing we changed
// the height, therefore we call this
this.props.onHeightChanged();
}; };
div.appendChild(button); div.appendChild(button);