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

H5P iframe flickers in firefox

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • None
    • 3.7.9
    • H5P
    • None
    • MOODLE_37_STABLE

      We had this issue where the H5P iframe flickers in Firefox but working fine in other browers.

       

      We found out that firefox sometimes returns the value 1 for element clientHeight. in this case h5p-resizer.js functions prepareResize and resize change iFrame height to different values making the iFrame flickers.

       

      We solved it by changing

       

      iframe.style.height = data.clientHeight + 'px'

      by

      iframe.style.height = (data.clientHeight > data.scrollHeight ? data.clientHeight : data.scrollHeight) + 'px';

       

      Regards,

            Unassigned Unassigned
            brunoilponseisae brunoilponseisae
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.