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

fix: make scorm panel cover entire height in fullscreen mode #98

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

Danyal-Faheem
Copy link
Contributor

fixes #96.

The scorm panel would retain any custom height set or the default 450px height in fullscreen mode thus defeating the purpose of the fullscreen mode.

We now cover the entire display in fullscreen mode.

Copy link
Collaborator

@ziafazal ziafazal left a comment

Choose a reason for hiding this comment

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

@Danyal-Faheem I have a suggestion

@@ -57,9 +57,15 @@ function ScormXBlock(runtime, element, settings) {
if (settings.block_height > screen.height) {
$(e.target).css("height", screen.height);
}
// Override height and cover entire display in fullscreen
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should remove all this code and use requestFullscreen and exitFullscreen methods as described here

Copy link
Collaborator

@ziafazal ziafazal left a comment

Choose a reason for hiding this comment

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

👍

@ziafazal ziafazal merged commit d9c8f93 into overhangio:master Feb 6, 2025
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.

Fullscreen Mode Not working properly
2 participants