From dce0f657e69be840bf312eb80ff2642ef7e24872 Mon Sep 17 00:00:00 2001 From: Ricky Rosario Date: Wed, 1 Jun 2016 16:40:48 -0400 Subject: [PATCH] fix (content): #774 fix zoom, resize, high res issues --- content-src/components/TimelinePage/TimelineFeed.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content-src/components/TimelinePage/TimelineFeed.js b/content-src/components/TimelinePage/TimelineFeed.js index 43d265df5..fdc71421c 100644 --- a/content-src/components/TimelinePage/TimelineFeed.js +++ b/content-src/components/TimelinePage/TimelineFeed.js @@ -42,6 +42,9 @@ const TimelineFeed = React.createClass({ }, onResize: debounce(function() { this.windowHeight = window.innerHeight; + + // After resizing, check if we can fit in more data. + this.onScroll(); }, 100), onScroll: debounce(function() { this.handleScroll({ @@ -55,6 +58,9 @@ const TimelineFeed = React.createClass({ // position sometimes if we set scrollTop to 0 instead of 1 if (!prevProps.Feed.init && this.props.Feed.init) { this.refs.scrollElement.scrollTop = 1; + + // Check if we can fit in more. + this.onScroll(); } }, componentDidMount() {