diff options
Diffstat (limited to 'webapp/utils/markdown.jsx')
-rw-r--r-- | webapp/utils/markdown.jsx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/webapp/utils/markdown.jsx b/webapp/utils/markdown.jsx index 0d9e977d7..f47c45d10 100644 --- a/webapp/utils/markdown.jsx +++ b/webapp/utils/markdown.jsx @@ -7,6 +7,8 @@ import * as SyntaxHighlighting from './syntax_highlighting.jsx'; import marked from 'marked'; import katex from 'katex'; +import ScrollStore from 'stores/scroll_store.jsx'; + function markdownImageLoaded(image) { if (image.hasAttribute('height') && image.attributes.height.value !== 'auto') { const maxHeight = parseInt(global.getComputedStyle(image).maxHeight, 10); @@ -20,6 +22,7 @@ function markdownImageLoaded(image) { } else { image.style.height = 'auto'; } + ScrollStore.emitPostScroll(); } global.markdownImageLoaded = markdownImageLoaded; |