Skip to content
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

spsComps gallery enlarge function is not working through iframe #8

Open
djorquerap opened this issue Oct 24, 2024 · 1 comment
Open

Comments

@djorquerap
Copy link

Here there is a shiny app that uses a gallery function with enlarge = TRUE and enlarge_method = "modal".

You can see this functionality first using the dropdown menu, then selecting a row in the datatable....

image

And finally clicking on the image embedded in the opened modal.
image

However, this app is made to be visualized through an iframe. Yet through this iframe you can't enlarge the image (maybe only the first time, but once the modal is closed it does not work anymore). You can test that here.

I made a maybe related question some time ago on StackOverflow that you can see here. The app for which I'm asking inludes Iz100's solution for that example in the script.

I'm sorry for not giving a reprex app. I tried making one but, oddly enough, it does works through the iframe, so I don't know what is going on (you can see that example app here. Maybe someone could discover the problem in the browser's developer panel?

Thanks in advance.

@lz100
Copy link
Owner

lz100 commented Oct 25, 2024

I don't see the source code of your app, but based on the DOM, the problem is you put the singleton(... part inside the shiny modal. In the StackOverflow solution, singleton part is placed directly under fluidPage without any nesting

image

If you install > 0.3.3.0, you shouldn't use the StackOverflow fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants