Fixes Listing Items Spacing Inconsistency and Content Overflow Issue #2846 (#3011)

This commit is contained in:
Mohammadjavad Raadi 2019-05-31 17:32:32 +04:30 committed by Ben Halpern
parent b35fc23a82
commit 2e8eda4974

View file

@ -51,6 +51,14 @@ export class Listings extends Component {
t.setUser()
document.body.addEventListener('keydown', t.handleKeyDown)
/*
The width of the columns also changes when the browser is resized
so we will also call this function on window resize to recalculate
each grid item's height to avoid content overflow
*/
window.addEventListener("resize", resizeAllMasonryItems);
}
componentDidUpdate() {