Skip to content

fix: hide navigation menu and scorm content width#107

Merged
ahmed-arb merged 1 commit into
overhangio:masterfrom
edly-io:fix/do_not_show_navigation_menu_when_its_disabled
Oct 24, 2025
Merged

fix: hide navigation menu and scorm content width#107
ahmed-arb merged 1 commit into
overhangio:masterfrom
edly-io:fix/do_not_show_navigation_menu_when_its_disabled

Conversation

@Faraz32123
Copy link
Copy Markdown

  • Don't show navigation menu and change scorm content width from 70% to 100% when navigation menu is disabled in new pop-up window.

Before:

Before.mov

After:

After.mov

@ahmed-arb ahmed-arb requested a review from mlabeeb03 October 21, 2025 09:16
@ahmed-arb ahmed-arb moved this from Pending Triage to In review in Tutor project management Oct 21, 2025
Comment thread openedxscorm/static/html/popup.html Outdated
</div>
<iframe class="scorm-embedded" src="{{ index_page_url }}" width="{{ width }}" height="{{ height }}"></iframe>
{% endif %}
<iframe class="scorm-embedded {% if not scorm_xblock.navigation_menu_width %}navigation-disabled{% endif %}" src="{{ index_page_url }}" width="{{ width }}" height="{{ height }}"></iframe>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This will add the navigation-disabled class if the navigation_menu_width is not set, even if the menu itself is enabled. Can you verify?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This condition was added due to the statement default will be 30% as shown in below pic which means navigation_menu_width will have a value.
But let's improve the condition and rely on {% if not enable_navigation_menu %}

Image

- Don't show navigation menu and change scorm content width from 70% to 100% when navigation menu is disabled in new pop-up window.
@Faraz32123 Faraz32123 force-pushed the fix/do_not_show_navigation_menu_when_its_disabled branch from 804b802 to b8c7dab Compare October 23, 2025 14:16
@Faraz32123
Copy link
Copy Markdown
Author

@ahmed-arb @mlabeeb03 can you guys please merge this PR as well for me and create a new release for this xblock, Thanks.

@ahmed-arb ahmed-arb merged commit a683332 into overhangio:master Oct 24, 2025
@github-project-automation github-project-automation Bot moved this from In review to Done in Tutor project management Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

4 participants