Orientation changes not reflecting
pKanijam opened this issue · comments
purnimaK commented
This one is good at initial load. But when the device orientation is changed then the grid stays the same. Not adjusting the new width of the screen.
purnimaK commented
Missing componentWillReceiveProps() method in the auto-responsive grid. Added the following and orientation changes are supported.
componentWillReceiveProps(nextProps) {
if (this.props.containerWidth !== nextProps.containerWidth) {
this.sortManager.changeProps({
containerWidth: nextProps.containerWidth
});
}
}