Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-60864

Embedded HTML files utilizing iframes do not calculate frame height correctly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.4
    • Fix Version/s: None
    • Component/s: HTML and CSS, Resource
    • Labels:
    • Affected Branches:
      MOODLE_34_STABLE

      Description

      It seems as though the iframe height calculation is bugged and very noticeable when the embedded HTML doesn't contain a lot of content. This wasn't the case in Moodle 2.6 – only seems to be after upgrading to Moodle 3.1. We were able to replicate this on a client's site as well as an internal site.

      How to replicate:

      • Add a File resource to a course.
      • Name it anything.
      • Place a HTML file in the "Select files" section with filler content in it.
      • Set Appearance -> Display -> Embed
      • View the file.

      https://imgur.com/a/9bGZa  – this album contains some screenshots of what's occurring.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jessestilwell Jesse Stilwell
              Participants:
              Component watchers:
              Amy Groshek, David Scotson, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Adrian Greeve, Mihail Geshoski, Peter Dias
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: