I'm trying to resize my Mansory layout but its just resizing once. I'm triggering a window.dispatchEvent(new Event('resize')) event but its working just once.
JS:
var elem = document.querySelector('.display_content');
var msnry = new Masonry(elem, {
itemSelector: '.section',
percentPosition: true,
});
I change the section height by deleting a table row with tr.outerHTML = "". When it is deleted, the table and section height are changed. As I said, the Mansory layout just resize in the first time.
When I want to add a table row in the table I just:
I'm trying to resize my Mansory layout but its just resizing once. I'm triggering a
window.dispatchEvent(new Event('resize'))
event but its working just once.JS:
CSS:
The .section height is variable and when I change it I trigger
window.dispatchEvent(new Event('resize'))
. There is a table inside the .sectionI change the section height by deleting a table row with
tr.outerHTML = ""
. When it is deleted, the table and section height are changed. As I said, the Mansory layout just resize in the first time.When I want to add a table row in the table I just:
Can you help me?