Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-78250

dynamicContentMacro iframes sometimes match the wrong media query

    XMLWordPrintable

Details

    Description

      Issue Summary

      Sometimes, the media queries within the dynamicContentMacro iframe is matched incorrectly, so that an iframe matches media queries of exactly 300px, even when the actual size is much larger.

      Steps to Reproduce

      1. Install any connect app that uses the dynamicContentMacro module.
      1. Create a page
      1. Insert one of the dynamicContentMacros
      1. Make sure your browser is larger than 300px and reload the page
      1. With the iframe selected, run:
        window.matchMedia("(max-width: 301px)").matches
      1. This will sometimes return true, even when the screen is larger than 301px.

      Expected Results

      window.matchMedia("(max-width: 301px)").matches should always return false for screens larger than 300px.

      Actual Results

      It occasionally returns false.
       

      Workaround

      Reload the page

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              b365a93d7dac Pamara Lim
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: