diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-06-29 10:49:55 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2017-06-29 07:49:55 -0700 |
commit | bf81fea9f8999c0b8949a9c464ef37b13ba0712b (patch) | |
tree | cc42782017b2ee9c8a88759e117d637eb29d3fa4 /webapp/components/post_view/post_attachment_opengraph/post_attachment_opengraph.jsx | |
parent | 84d5f314a0019ca86d141a8a6c0a0b602ee3c954 (diff) | |
download | chat-bf81fea9f8999c0b8949a9c464ef37b13ba0712b.tar.gz chat-bf81fea9f8999c0b8949a9c464ef37b13ba0712b.tar.bz2 chat-bf81fea9f8999c0b8949a9c464ef37b13ba0712b.zip |
More scrolling fixes (#6780)
* Added MarkdownImage component
* Fixed unit tests
* More scrolling fixes
Diffstat (limited to 'webapp/components/post_view/post_attachment_opengraph/post_attachment_opengraph.jsx')
-rw-r--r-- | webapp/components/post_view/post_attachment_opengraph/post_attachment_opengraph.jsx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/webapp/components/post_view/post_attachment_opengraph/post_attachment_opengraph.jsx b/webapp/components/post_view/post_attachment_opengraph/post_attachment_opengraph.jsx index e3ddcc6d5..743d7a22a 100644 --- a/webapp/components/post_view/post_attachment_opengraph/post_attachment_opengraph.jsx +++ b/webapp/components/post_view/post_attachment_opengraph/post_attachment_opengraph.jsx @@ -4,6 +4,8 @@ import React from 'react'; import PropTypes from 'prop-types'; +import {postListScrollChange} from 'actions/global_actions.jsx'; + import * as Utils from 'utils/utils.jsx'; import * as CommonUtils from 'utils/commons.jsx'; @@ -82,6 +84,10 @@ export default class PostAttachmentOpenGraph extends React.PureComponent { } } + componentDidUpdate() { + postListScrollChange(); + } + fetchData(url) { if (!this.props.openGraphData) { this.props.actions.getOpenGraphMetadata(url); |