1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

Created list that renders only currently visible items

This commit is contained in:
Laurent Cozic
2017-11-04 19:46:37 +00:00
parent 18bb02244f
commit ec259f866f
7 changed files with 130 additions and 17 deletions

View File

@ -29,6 +29,7 @@ const defaultState = {
routeName: 'Welcome',
params: {},
},
windowContentSize: { width: 0, height: 0 },
};
let navHistory = [];
@ -410,6 +411,12 @@ const reducer = (state = defaultState, action) => {
newState.appState = action.state;
break;
case 'WINDOW_CONTENT_SIZE_SET':
newState = Object.assign({}, state);
newState.windowContentSize = action.size;
break;
}
} catch (error) {
error.message = 'In reducer: ' + error.message + ' Action: ' + JSON.stringify(action);