You've already forked joplin
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:
@ -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);
|
||||
|
Reference in New Issue
Block a user