fix(tile-view):Recalculate on window height change

This commit is contained in:
Hristo Terezov 2022-04-27 16:28:39 -05:00 committed by Saúl Ibarra Corretgé
parent 2ac2138982
commit 550c730ed4
1 changed files with 7 additions and 2 deletions

View File

@ -61,8 +61,13 @@ StateListenerRegistry.register(
*/
StateListenerRegistry.register(
/* selector */ state => {
return { layout: getCurrentLayout(state),
width: state['features/base/responsive-ui'].clientWidth };
const { clientHeight, clientWidth } = state['features/base/responsive-ui'];
return {
layout: getCurrentLayout(state),
height: clientHeight,
width: clientWidth
};
},
/* listener */ ({ layout }, store) => {
switch (layout) {