fix(tile-view):Recalculate on window height change
This commit is contained in:
parent
2ac2138982
commit
550c730ed4
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue