From 77248725edd68ef2f8cb3b64d313f7eea33ec5ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Brandner?= Date: Fri, 5 Feb 2021 08:29:24 +0100 Subject: [PATCH] Added onHeightChanged call MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Šimon Brandner --- src/components/views/messages/TextualBody.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/views/messages/TextualBody.js b/src/components/views/messages/TextualBody.js index a2ed349812..bd0d0e3457 100644 --- a/src/components/views/messages/TextualBody.js +++ b/src/components/views/messages/TextualBody.js @@ -147,6 +147,10 @@ export default class TextualBody extends React.Component { pre.className = "mx_EventTile_collapsedCodeBlock"; button.className += "mx_EventTile_expandButton"; } + + // By expanding/collapsing we changed + // the height, therefore we call this + this.props.onHeightChanged(); }; div.appendChild(button);