hypothesis / hypothesis/support-legacy
Moodle's iframe when embedding LTI tools is small compared to the size of the embedded web page
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 3
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
It looks like Moodle is constraining the Hypothesis iframe, giving it a hard limit on height. This is reproducible in Chrome, Firefox, and Safari. It also affects an assignment made with a different LTI tool, so it's likely not a Hypothesis-specific issue.
Note that launching in a new window does not have this issue.
To Reproduce
Steps to reproduce the behavior:
Hypothesis example -
- Go to https://hypothesisuniversity.moodlecloud.com/mod/lti/view.php?id=283
- Resize screen as needed
- Note the iframe containing Hypothesis has a hard limit set on height that changes when resizing the window:
<iframe id="contentframe" height="600px" width="100%" src="launch.php?id=283&triggerview=0" allow="microphone ; camera ; geolocation ; midi ; encrypted-media ; autoplay " allowfullscreen="1" style="height: 292.688px;"></iframe>
Other LTI example:
- Go to https://hypothesisuniversity.moodlecloud.com/mod/lti/view.php?id=327&forceview=1
- Repeat test above
- OR -
- Create a Hypothesis assignment in Moodle
- Make sure that the assignment settings > General > Launch container is set to "Embed".
- See error.
Expected behavior
Users would expect to see more of the embedded page available to them, or to have the Hypothesis iframe extend to the bottom of the visible page.
Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
Smartphone (please complete the following information):
- Mac OS Mojave 10.14
- Chrome 86
Additional context
It's worth noting that in the original Slack conversation I thought this was coming from an LMS user, but they were actually reporting an issue (that seems to do with how they zoom in) in a different LMS.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the embedded Hypothesis and other LTI examples at the linked Moodle URLs, then inspect the reported contentframe height while resizing the browser. Compare the embedded view with the new-window behavior and determine whether an actionable change belongs in this repository or in Moodle; done means the responsible component and next change are identified.
Written by the indexing model from the issue text.
Assessment
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100