diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-06-23 12:09:56 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-23 12:09:56 -0400 |
commit | ca8d57c4dbfe839db28b583caa7d599c0cfc023a (patch) | |
tree | 0a4fc6eabf8b8d7f87fdb687b03cc4da7e48d2c3 /webapp/utils/markdown.jsx | |
parent | b01da39887b990b8c57484f53643a3c0ea5d531b (diff) | |
download | chat-ca8d57c4dbfe839db28b583caa7d599c0cfc023a.tar.gz chat-ca8d57c4dbfe839db28b583caa7d599c0cfc023a.tar.bz2 chat-ca8d57c4dbfe839db28b583caa7d599c0cfc023a.zip |
PLT-6890 Fix various scrolling issues (#6727)
* Fix various scrolling issues
* Move reaction scrolling to reaction list
* Handle scrolling when RHS opens
* Only run scroll update code when posts change
Diffstat (limited to 'webapp/utils/markdown.jsx')
-rw-r--r-- | webapp/utils/markdown.jsx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/webapp/utils/markdown.jsx b/webapp/utils/markdown.jsx index f47c45d10..60ccbd246 100644 --- a/webapp/utils/markdown.jsx +++ b/webapp/utils/markdown.jsx @@ -4,11 +4,11 @@ import * as TextFormatting from './text_formatting.jsx'; import * as SyntaxHighlighting from './syntax_highlighting.jsx'; +import {postListScrollChange} from 'actions/global_actions.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); @@ -22,7 +22,8 @@ function markdownImageLoaded(image) { } else { image.style.height = 'auto'; } - ScrollStore.emitPostScroll(); + + postListScrollChange(); } global.markdownImageLoaded = markdownImageLoaded; |