<p style="position: relative;"> crashes Flare

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
rjplano
Propeller Head
Posts: 51
Joined: Tue May 05, 2020 10:08 am

<p style="position: relative;"> crashes Flare

Post by rjplano »

I need to place change bars in front of specific lines in some of my PDF documents. The best way I've come up with so far is to place an image of a vertical line in the XML code and position it using left and top parameters. This requires that the image position be set to 'absolute' and the paragraph that contains it have its position set to 'relative'. Tedious, but it works in most cases. However, I'm running into an issue in some of my topics where when I set the enclosing paragraph's position to relative, Flare (I'm using 2020 r2) crashes hard, no error messages, just the Windows popup saying Flare has stopped responding.

Here is the offending code. :

Code: Select all

<tr class="TableStyle-Basic4Column-Body-Normal" MadCap:pattern="9">
    <td class="TableStyle-Basic4Column-BodyH-Name-Normal">
        <p style="position: relative;">
            <img src="../../Resources/Images/1px x16px Line.png" style="position: absolute; left: -2.08in; top: 0pt;" /><span class="addedText">system-error</span>
        </p>
    </td>
    <td class="TableStyle-Basic4Column-BodyG-Type-Normal">
        <p><span class="addedText">System error</span>
        </p>
    </td>
 </tr>
 
If I remove the ' style="position: relative;"' from the <p> tag, Flare is happy, but of course the change bar is not place correctly. I used the exact same procedure higher up in the same topic and it works just fine, so I'm puzzled why there's the issue here. In another topic I have about two dozen change bars using this method and they all work but I have to make all my changes in an external text editor. If I make any changes at all in Flare's XML Editor to that topic, the same crashing behavior occurs.
rjplano
Propeller Head
Posts: 51
Joined: Tue May 05, 2020 10:08 am

Re: <p style="position: relative;"> crashes Flare

Post by rjplano »

An update on this. It's not the "position: relative;" that's directly causing the problem. It's having both the 'relative' and 'absolute' position both enabled at the same time. If the enclosing paragraph is set to "position: relative" while the change bar image does not have position specified, Flare does not crash. Same if the image has "position: absolute;" but the enclosing paragraph does not have position specified. It's the combination of "position: relative;" and "position: absolute;" that Flare is having a problem with. But only there, not where it occurs earlier in the topic. I removed that earlier change bar image but that had no effect on behavior.
rjplano
Propeller Head
Posts: 51
Joined: Tue May 05, 2020 10:08 am

Re: <p style="position: relative;"> crashes Flare

Post by rjplano »

Next update.
The problem is that I want the image in a table that is inside another table. If I apply "position: relative;" to the table caption (a plain <p> tag), which is outside of the nested table, then the image position can be controlled with "position: absolute;". Not a great workaround because there will certainly be occasions where the caption will end up on a different page than the changed text and the bar will be in the wrong place.
Post Reply