Expand Macro collapses immediately upon expanding it

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

When expanding an 'Expand' macro on a page, the macro immediately collapses half a second after and the data within the 'Expand' macro disappears.

Cause

This is because there are some <div></div> tags and classes enclosed within the storage format of the affected 'Expand' macros that shouldn't be there:

<div class="expand-container conf-macro output-block">
  <div class="expand-control">

Resolution

  1. Install Confluence Source Editor if you don't already have it installed.
  2. Edit the affected page(s).
  3. Click on the <> symbol on the top right corner of the page editor.
  4. Search for the following classes:

    <div class="expand-container conf-macro output-block">
      <div class="expand-control">
  5. Remove it from the code, along with their closing </div> tags.

  6. Click on 'Apply'.
  7. Save the page.
Last modified on Sep 20, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.