-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to force a recalculation of caption size and positioning? #2
Comments
You can either do |
Thanks for your reply, unfortunately captionPlugin.updateCurrentCaptionPosition(); gives error: and pswp.captionPlugin.updateCurrentCaptionPosition(); gives errorr: pswp.updateSize(true); is accepted, but I see no effect . May be that is because the caption of the 3th slide in my test album is this:
and the function toggleMore() shows / hide the triggerMoreInfo class:
So it possible works only if you use the visible contents of the caption. |
In this album I use the captionPlugin with option tyoe 'below' and this css:
If you click the 3th thumbnail, you ghet a slide with caption :
Library More info
The More info text is blue, because it is a link. If you click on this link the caption text is enlarged and not all text is readable.
If you click the link, a recalculation of the caption positioning should be done.
Is that possible?
If so how can I force a recalculation in the click code?
In this slide and in the other slides, the text is also expanded if the EXIF data are displayed, by clicking on the camera icon in the upper right corner..
In that case is also a recalculation required.
The text was updated successfully, but these errors were encountered: