Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Render bug when collapse = true" set on a code block macro embedded within an Expand macro

Mike Ely February 12, 2018

Try this:

Add an Expand macro to a page. Within that Expand, add a Code Block macro and select "Collapsible" in the object properties. Make sure you've got some text within and without both macros.

Here's what I've seen on two separate computers (both using Firefox but different OSs):

Select the link for the Expand macro, there's the content including a code block that simply shows a link for "Expand source"

Click Expand Source, now the entire Expand macro (not the code block macro!) collapses although the pointer next to the outer Expand macro now points down, indicating the expand is open.

Click the text for the Expand macro again, and the code block is now displayed correctly, although the expand macro position indicator toggles into the wrong position once more.

For extra fun, put multiple "collapsible = true" code blocks within your expand macro and try to view them all.

2 answers

1 accepted

0 votes
Answer accepted
Thomas Deiler
Community Champion
February 24, 2018

Dear @Mike Ely,

can you please provide following information to reproduce your finding:

  • Confluence Version
  • both Browser Versions incl OS type
  • A sample screen shot

Many Thanks

Thomas

Mike Ely February 26, 2018

@Thomas DeilerI have answered your questions below.

Thomas Deiler
Community Champion
February 26, 2018

Dear @Mike Ely,

I reproduced it even with an older version of confluence and Chrome.

I will raise a bug at Atlassian for you (they will love me for that 8)

I report back.

So long

Thomas

Mike Ely February 26, 2018

Thank you sir. Have a great workweek.

Thomas Deiler
Community Champion
February 26, 2018

It is already a known bug: CONFSERVER-39654 and CONFSERVER-33274 

Thomas Deiler
Community Champion
February 26, 2018

If satisfied, please accept this response.

Mike Ely February 26, 2018

Ugh, look how stale that bug is. Devops kids these days I tellya. They'd rather do "important" things like disable the ability to indent in the text editor than fix longstanding bugs. Argh...

Anyhow, thank you for digging in to this with me. Pity @atlassian hasn't paid it any mind.

Thomas Deiler
Community Champion
February 26, 2018

You can vote for it! ;)

Mike Ely February 26, 2018

For whatever it's worth, I did. Seems like bugs that don't get about 1k votes are ignored though.

0 votes
Mike Ely February 26, 2018
  • Confluence 6.7.0
  • Firefox 52.6.0 on opensSUSE Leap and 58.0.2 on Windows 10 (both 64-bit)


Screenshot before expanding the Expand macro:

1.png

After I expand the Expand:

2.png

 

After I click "Expand source" (the code block briefly appears for less than a second and then vanishes):

3.png

 

Note the position indicator to the left of "Here's the outer..." - it's in the expanded position although the expand block is collapsed. Clicking the expand text again results in:

4.png

 

Again, note the position indicator next to the expand text - it's in the collapsed position although now both the expand macro and embedded code block are expanded (the code block correctly indicates its position btw).

 

I hope this helps you better understand what I'm talking about.

 

Cheers,

Mike

  

Mike Ely February 26, 2018

Also, the first time I typed the above reply with screenshots (took about fifteen minutes including screenshots, I got this utterly maddening error:

wtf.png

And yes, that did delete all my input and I did have to re-upload all the screenshots. Considering Atlassian builds webapps as a core competency, this is inexcusable.

Thomas Deiler
Community Champion
February 26, 2018

Dear @Mike Ely,

yes, this has happened to me also a couple of times. But I am the wrong person to tell. I belong to a community of volunteer answering user questions. You have to address this with the session expiration to Atlassian directly.

So long

Thomas

Mike Ely February 26, 2018

@Thomas Deilerdo you feel that the explanation of the bug is sufficient?


Many thanks,

Mike

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events