Hi All,
I’m building a Forge app that renders Custom UI content in Confluence via an inline macro.
According to the macro documentation:
‘inline’ shows the element inline with existing text. For UI Kit apps, inline macros dynamically resize to wrap the content. A limitation exists for Custom UI apps that prevents inline macros from dynamically resizing when the content of the macro is changed.
That’s exactly what I’m seeing, the iframe size seems to be locked at the initial render. This causes issues like:
-
Short content - the iframe gets sized very narrowly, leaving visible gaps in the text flow.
-
Long content - iframe doesn’t expand, so content can be clipped.
In Connect we had AP.resize()
to deal with this, but I don’t see an equivalent for Forge.
Has anyone else worked around this?
-
Is there any way to re-trigger sizing for inline content?
-
Or is pre-measuring / setting a fixed width the only current option?
Thanks in advance!
Sue