react-masonry-layout icon indicating copy to clipboard operation
react-masonry-layout copied to clipboard

Unable to readjust all the bricks in the grid container

Open mattsp opened this issue 7 years ago • 5 comments

When we resize the window i need to adjust the number of column of my masonry.

mattsp avatar Aug 28 '18 06:08 mattsp

Do you mean it doesn't work when you resize window ?

scarletsky avatar Aug 28 '18 06:08 scarletsky

its is possible to recalculate the number of columns dynamically when you change the width of the window or parent container.

mattsp avatar Aug 29 '18 17:08 mattsp

Sorry for delay. So you need an other api to readjust bricks manually ?

scarletsky avatar Sep 03 '18 09:09 scarletsky

Yes

mattsp avatar Sep 07 '18 15:09 mattsp

Now you can call getBricksInstance to get the bricks.js instance. Do whatever you want with it.

scarletsky avatar Sep 18 '18 02:09 scarletsky