question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

On a project I’m working on I need the ability to force update the layout on a click event. Is there a method on this.masonry that allows this? I have cards that expand and collapse on click.

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:11

github_iconTop GitHub Comments

14reactions
Mike-Timmscommented, Nov 13, 2018

If I dynamically change the size of an item will calling this.masonry.layout() cause the items to reorder accordingly to fit? Because when calling it, the items still stay the same and arent being reordered.

On a project I’m working on I need the ability to force update the layout on a click event. Is there a method on this.masonry that allows this? I have cards that expand and collapse on click.

Realise this is a long time after you were working on this, but found this functionality is already built in.

Looking through the Index.js file of the module there is a prop you can add to the masonry component “enableResizableChildren”.

Your Masonry component would looks something like:

<Masonry enableResizableChildren={true} otherProps="" > // Your masonry content </Masonry>

9reactions
bryndymentcommented, Jun 2, 2019

Could someone provide an example of calling reloadItems from within a function component?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use GPUpdate /Force command to update Group Policy
How force group policy update. Press Windows key + X or right-click on the start menu. Select Windows PowerShell or Command Prompt.
Read more >
GPUpdate Command: How to force a group policy update
In this guide, you will learn how to use the gpupdate command to force a group policy update on a Windows computer. I'll...
Read more >
forced update - Wiktionary
(computing) An update required before the user is allowed to continue using the software.
Read more >
How to Force Windows 10 to Install an Update - Help Desk Geek
How to Force Windows 10 to Install an Update · 1. Restart the Windows Update Service · 2. Restart the Background Intelligent Transfer...
Read more >
How to force Windows 11/10 to Update or Upgrade
Using the wuauclt.exe Run command, you can force Windows Update check for, download and install updates on your Windows 11/10, right away.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found