Commit 550c730e authored by Hristo Terezov's avatar Hristo Terezov Committed by Saúl Ibarra Corretgé
Browse files

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

parent 2ac21389
Branches
No related merge requests found
Showing with 7 additions and 2 deletions
......@@ -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) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment