Open jankeistoer opened 9 months ago
I expect both instances to work properly and set correct sizes.
One of the instances works perfectly but the height of the second instance is incorrect.
I use the following configuration:
const macyInstance = Macy({ container: `#${wrappedId}`, columns: 1, margin: { x: 32, y: 32, }, mobileFirst: true, breakAt: { 576: { columns: 2, }, 992: { columns: 3, }, }, });
macyInstance.recalculate();
If possible, please upload a screenshot or screen recording which demonstrates the bug.
This is the first instance:
This is the second instance:
Problem was solved with the recalculateOnImageLoad function.
Expected Behavior
I expect both instances to work properly and set correct sizes.
Actual Behavior
One of the instances works perfectly but the height of the second instance is incorrect.
Step-by-step reproduction instructions
I use the following configuration:
macyInstance.recalculate();
Screenshots, screen recordings, code snippets
If possible, please upload a screenshot or screen recording which demonstrates the bug.
This is the first instance:
This is the second instance: