Open codehandling opened 8 years ago
Also, is there a way I can re-layout the Wookmark grid on the page, if I do not have the woomkark object.
For example, in the previous versions (1.4.8), calling resize() on the window object used to call layout of the Wookmark as well.
$(window).resize();
This does not seem to work in the latest version
Thanks a lot for this issue. This is not working anymore as it should.
jQuery doesn't seem to trigger the custom events added with addEventListener
.
I have to investigate this further and maybe have to add additional event handlers for jQuery.
What you can do now would be this:
container.dispatchEvent(new CustomEvent("refreshWookmark"));
window.dispatchEvent(new CustomEvent("resize"));
What is the right way to update Wookmark layout ?
I am using the jQuery call to Wookmark and I have tried the below to update the layout -
my_wookmark.layout(true);
my_wookmark.updateOptions();
Both give me the Error - Uncaught TypeError: my_wookmark.layout is not a function
Snippet -