Visitar URL original
Fix fullscreen element selection by luk27official · Pull Request #1713 · molstar/molstar · GitHub
Skip to content

Fix fullscreen element selection - #1713

Open
luk27official wants to merge 2 commits into
molstar:masterfrom
luk27official:feature/fix-fullscreen
Open

luk27official wants to merge 2 commits into
molstar:masterfrom
luk27official:feature/fix-fullscreen

Conversation

@luk27official

@luk27official luk27official commented Dec 1, 2025 •

Copy link
Copy Markdown
Contributor

Description

When using the Mol* viewer fullscreen handler, I have noticed that in some cases (e.g. bigger React apps), it does not toggle the fullscreen for the viewer itself, but rather for the full page. This quick fix worked for me - I think the requestFullscreen should be called with this.root instead of the body element.

Please, check if this works for you as well :)
Thank you.

Actions

  • Added description of changes to the [Unreleased] section of CHANGELOG.md
  • Updated headers of modified files
  • Added my name to package.json's contributors
  • (Optional but encouraged) Improved documentation in docs

@dsehnal

dsehnal commented Dec 1, 2025 •

Copy link
Copy Markdown
Member

The body option is actually useful too, for example for https://molstar.org/demos/mvs-stories/?story=kinase

How about a plugin config item for this? The default can be root, but also update the stories viewer (both in demo and apps) to use the body option.

@luk27official

Copy link
Copy Markdown
Contributor Author

I see the use case, yes, that would make sense as well. :)

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

2 participants