Auto-numbering in Top Nav - problem with "outside-head"

This forum is for all Flare issues not related to any of the other categories.
Post Reply
jbananak
Propeller Head
Posts: 68
Joined: Thu May 03, 2012 2:45 am

Auto-numbering in Top Nav - problem with "outside-head"

Post by jbananak »

mc-auto-number-position_bug.png
How now do I create a paragraph, in which in the numbering is hanging out to the left and the text is aligned with itself and not the number, and yet behaves like a normal paragraph?
Sounds simple.. well.
I have created an autonumbering style in which the only difference between that style and the default <p> style is that it has auto-numbering (for example {n+}, offset default, and mc-auto-number-position="outside-head".
(The "outside-head" choice means that the text is aligned with itself and the number is outside the text... hanging paragraph).

Now this is great, except in TopNav, when I use "outside-head" (and I checked the other options "float left", "inside'head", "default", etc...), and I have a miniTOC on the right side of the page, the text does not wrap like it should to fit into the window to the left of the minitoc. It leaves a huge space and starts only after the bottom of the miniTOC.

It is definitely connected to the "outside-head" parameter (I didn't work in QA for 5 years in a previous life for nothing!).
I have submitted a bug report to Madcap, because I see it as a bug; meanwhile, I need a solution so that I don't have these big spaces in my topics where there is autonumbering.
Anyone?
Thanks
Joanna
You do not have the required permissions to view the files attached to this post.
NorthEast
Master Propellus Maximus
Posts: 6426
Joined: Mon Mar 05, 2007 8:33 am

Re: Auto-numbering in Top Nav - problem with "outside-head"

Post by NorthEast »

This is a bit of a strange one.

When you use outside-head, Flare will generate the autonumber as a table in the output; so in the HTML you'll see something like this:

Code: Select all

<table cellspacing="0" cellpadding="0" style="width: 100%; margin-left: 0;" class="AutoNumber_p_numbered">
...
...
Note that code includes the style width:100% - because it wants to be the full width, it can't fit alongside any floated elements, so will be positioned below them.

Anyway, since Flare is hard-coding the width (for what reason, I've no idea), you'll have to use some CSS to counteract this.
This will set the width to 'auto' for any table with a class name including 'AutoNumber':

Code: Select all

table[class*="AutoNumber"]
{
    width: auto !important;
}
jbananak
Propeller Head
Posts: 68
Joined: Thu May 03, 2012 2:45 am

Re: Auto-numbering in Top Nav - problem with "outside-head"

Post by jbananak »

Thank you so much.
Joanna
Post Reply