Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@luk27official
Copy link
Contributor

Description

OK, feel free to add "ExpandToFullsceen" option to the plugin config list

As discussed in #1663, I have implemented the PluginConfig.General.ExpandToFullscreen option to enable fullscreen mode (but I don't have push rights for David's repository).

A new fullscreenchange handler was added as well - the user might want to get out of the fullscreen mode using Escape and not by using the expand button.

referencing it in the layout manager, supporting it in the Viewer, the URL params, etc.

I have tried changing the configuration for the docking-viewer app which is working, referencing the value in the Viewer class works as well. Not sure about the URL params, though.

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

Copy link
Member

@dsehnal dsehnal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM, let's try this out. I will do the memory leak fix.

Comment on lines +225 to +226
document.addEventListener('fullscreenchange', fullscreenChangeHandler);
document.addEventListener('webkitfullscreenchange', fullscreenChangeHandler);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could cause a memory leak, so will need to add a dispose method too which unregisters the listeners during plugin.dispose.

@dsehnal dsehnal merged commit fb5da1b into molstar:master Oct 25, 2025
1 check passed
@dsehnal dsehnal mentioned this pull request Oct 25, 2025
5 tasks
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