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(
|
StateListenerRegistry.register(
|
||||||
/* selector */ state => {
|
/* selector */ state => {
|
||||||
return { layout: getCurrentLayout(state),
|
const { clientHeight, clientWidth } = state['features/base/responsive-ui'];
|
||||||
width: state['features/base/responsive-ui'].clientWidth };
|
|
||||||
|
return {
|
||||||
|
layout: getCurrentLayout(state),
|
||||||
|
height: clientHeight,
|
||||||
|
width: clientWidth
|
||||||
|
};
|
||||||
},
|
},
|
||||||
/* listener */ ({ layout }, store) => {
|
/* listener */ ({ layout }, store) => {
|
||||||
switch (layout) {
|
switch (layout) {
|
||||||
|
|
Loading…
Reference in New Issue