Skip to content

Commit

Permalink
fixed react-virtualized demo scroll position when other demo element …
Browse files Browse the repository at this point in the history
…has changed (ant-design#7866)
  • Loading branch information
nikogu authored and afc163 committed Oct 12, 2017
1 parent efe0f34 commit 48847e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/list/demo/loadmore.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ class LoadMoreList extends React.Component {
this.setState({
data,
loadingMore: false,
}, () => {
// Resetting window's offsetTop so as to display react-virtualized demo underfloor.
window.dispatchEvent(new Event('resize'));
});
});
}
Expand Down

0 comments on commit 48847e1

Please sign in to comment.