You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the non-full-screen mode, the text "some text" shows up on the top left of the viewer as it is positioned absolutely. But when you switch to the full-screen mode the text "some text" disappears.
If we look at the final markup after the photosphere renders the viewer in the #viewer element, it looks like this.
<divid="viewer"><h1>some text</h1><divclass="psv-container psv--has-navbar"><!-- all viewer content --></div></div>
Now, the problem is photosphere sets requestFullScreen() on the .psv-container element, and doing this makes the inside content visible and outer content (in this case: <h1>some text</h1>) disappear, and it seems like there is no CSS hack that can make custom content visible in full-screen mode.
If photosphere calls requestFullScreen() on the #viewer element instead of .psv-container element, it will solve the problem.
I have searched the documentation but found nothing that could cover this use case. Please share if there's a solution or hack for it. I am sorry if there's already a solution for it and I missed it. And if there's not, then please add this functionality.
Thanks
Alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered:
@mistic100 Thanks, it works. But in React, it makes the process lengthy because we cannot give JSX directly to appendChild(). It would be easier for React devs if Photosphere accepts children directly. Since appendChild() works, so please close the issue if you think the suggested fix is unnecessary.
Describe the feature
It looks like we cannot add custom content to show up in the viewer in full-screen mode. Consider the code snippets
HTML
CSS
JS
In the non-full-screen mode, the text "some text" shows up on the top left of the viewer as it is positioned absolutely. But when you switch to the full-screen mode the text "some text" disappears.
If we look at the final markup after the photosphere renders the viewer in the
#viewer
element, it looks like this.Now, the problem is photosphere sets
requestFullScreen()
on the.psv-container
element, and doing this makes the inside content visible and outer content (in this case:<h1>some text</h1>
) disappear, and it seems like there is no CSS hack that can make custom content visible in full-screen mode.If photosphere calls
requestFullScreen()
on the#viewer
element instead of.psv-container
element, it will solve the problem.I have searched the documentation but found nothing that could cover this use case. Please share if there's a solution or hack for it. I am sorry if there's already a solution for it and I missed it. And if there's not, then please add this functionality.
Thanks
Alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: