Closed dhowe closed 3 years ago
I think this is caused by the how the gallery is created
the gallery is insert by the gallery.js
file which append the content after the DOM elements are loaded
so when the (cross page anchor) link (i.e. ../index.html#reference
) is clicked, it did scroll to the top of the reference div (and at this time the gallery content are not in the gallery div yet), but then the content of the gallery is injected and the place of the reference div is changed
I think a way to solve this is to generate the gallery content using the same process we use for the reference?
-----------------------
or add something to the afterGalleryCreated()
like this:
which works too...
no need for the gallery to be dynamic... whatever is easiest