Aligning Gliffy diagram

Iain Buchanan August 21, 2013

If I use the alignment buttons in the editor with a Gliffy diagram selected it appears to work, but as soon as the page is saved or previewed it reverts to left-alignment. Is there a way of aligning Gliffy diagrams? (Even inserting the macro manually {gliffy:name=...|align=right} fails.)

I'm using Confluence 5.1.3 and Gliffy 5.4.2. Similar issues seem to have occurred with other plugins:

https://answers.atlassian.com/questions/174103/diagramly-text-wrapping-bug

7 answers

1 vote
Heena Heena April 12, 2021

A trick that I have found for this is that if you change the text type in front of the gliffy diagram to Heading 1, it will do the center align as expected.

0 votes
Taylor Lopez May 25, 2017

You can also "patch" the CSS in an embedded HTML component on the page.

<style>
.gliffy-container
{
    display: block;
    margin: 0 auto;
}
</style>

This will affect all Gliffy diagrams on the page.

Even though it doesn't work on the published page, you may still want to set the allignment on the diagram to "centered" just so that things don't look funky while you're editing the page.

0 votes
Anton Mostovoy July 22, 2014

https://jira.gliffy.com/browse/GCONF-1780has been open to improve this.

0 votes
Anton Mostovoy July 22, 2014

https://jira.gliffy.com/browse/GCONF-1780has been open to improve this.

0 votes
KatyK
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 21, 2014

Hi,

Atlassian has some custom css hooks for getting image placement correct. However, the Gliffy tinymce editor doesn't always reflect placement behavior even for plain images. We would recommend using the Page Layouts feature in Confluence to place your diagrams how you want them to appear on your Confluence page.

If you have any further questions, please email us at support@gliffy.com

Thanks!

Katy

Gliffy Support

0 votes
Anton Mostovoy July 18, 2014

The Gliffy bug has been closed as 'Won't Fix'.

Any idea what's up with that?

0 votes
Iain Buchanan August 23, 2013

This has been confirmed as a bug by Gliffy:

http://jira.gliffy.com/browse/GCONF-1488

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events