How to add window resize trigger
-
My plugin (wp-photo-album-plus) requires a window resize after changing tab.
When i add:
jQuery(document).ready(function() { jQuery(".responsive-tabs__list__item").on("click", function(){ jQuery(window).trigger("resize")} ); });
It does not add the event handlers,
when i add:jQuery(document).ready(function() { setTimeout(function(){ jQuery(".responsive-tabs__list__item").on("click", function(){ jQuery(window).trigger("resize")} ); },1000); });
it works, but 1000 ms is unreliable.
How can i add this event handler the right way?
The page I need help with: [log in to see the link]
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to add window resize trigger’ is closed to new replies.