seyDoggy / superbox

Superbox, the lightbox, reimagined

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refresh layout callback

yCodeTech opened this issue · comments

commented

I would like to implement a refresh callback to allow the layout to essentially refresh, like it does on window resize. However, I am a newbie to building plugins, and I can't work out how to to do it. Please can you help me.

Reason for this is I would like to use Superbox inside a modal, however when I initialize the plugin and then open the modal, Superbox layout is all wrong. However with the callback, I can just refresh the layout upon opening the modal. Please help.