1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Desktop: Fixes #1200: Note list was hidden when minimizing and

maximizing window
This commit is contained in:
Laurent Cozic 2019-02-10 15:59:24 +00:00
parent 0b4650f355
commit bc58668483

View File

@ -22,7 +22,7 @@ class ItemList extends React.Component {
if (typeof props === 'undefined') props = this.props;
const topItemIndex = Math.floor(this.scrollTop_ / props.itemHeight);
const visibleItemCount = this.visibleItemCount();
const visibleItemCount = this.visibleItemCount(props);
let bottomItemIndex = topItemIndex + visibleItemCount;
if (bottomItemIndex >= props.items.length) bottomItemIndex = props.items.length - 1;