Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-34028

Collapsible code macro inside expand block doesn't work as expected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Low
    • None
    • None
    • None
    • None

    Description

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      Steps to Reproduce:
      1. Create an expand block
      2. Inside the expansion block, create a code block, and set collapsible=true
      3. Save the page
      4. Click the expansion link to show the codeblock in it's collapsed state
      5. Click the codeblock's expansion link

      The storage format for the example is as follows:

      <ac:structured-macro ac:name="expand">
        <ac:rich-text-body>
          <ac:structured-macro ac:name="code">
            <ac:parameter ac:name="linenumbers">true</ac:parameter>
            <ac:parameter ac:name="collapse">true</ac:parameter>
            <ac:plain-text-body>
              <![CDATA[#style { font-weight: bold; }]]>
            </ac:plain-text-body>
          </ac:structured-macro>
        </ac:rich-text-body>
      </ac:structured-macro>
      
      Expected Results

      The code block should expand and be visible.

      Actual Result

      The code block expands, and disappears as the outer expand is (incorrectly) collapsed.

      Workaround

      Expand the outer expand macro again, to reveal the expanded codeblock.

      Notes

      The reverse is well - collapse the code block, and the outer expand will collapse as well.

      Attachments

        Issue Links

          Activity

            People

              shaffenden Steve Haffenden (Inactive)
              dnorton@atlassian.com Dave Norton
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: