Rerender MessagePanel
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
parent
97c5058f00
commit
c7e61ac71d
2 changed files with 15 additions and 0 deletions
|
@ -147,6 +147,10 @@ export default class TextualBody extends React.Component {
|
|||
pre.className = "mx_EventTile_collapsedCodeBlock";
|
||||
button.className += "mx_EventTile_expandButton";
|
||||
}
|
||||
/* Now we need to rerender the MessagePanel because the
|
||||
* content's size has changed. Otherwise scrolling could
|
||||
* get broken */
|
||||
dis.dispatch({action: "rerender_MessagePanel"});
|
||||
};
|
||||
|
||||
div.appendChild(button);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue