Merged Cells Alignment Strangeness

Please post all new bug reports for Help & Manual 5 here.
Post Reply
Mark Jerde
Posts: 28
Joined: Thu Nov 22, 2007 6:51 pm

Merged Cells Alignment Strangeness

Unread post by Mark Jerde »

I merged the 3 cells in the top row of a table and want to center text in the single merged cell. It isn’t working as expected. Screenshots are here.
http://markjerde.blogspot.com/2010/02/h ... eness.html

Here is the XML Source.

Code: Select all

<topic template="Default" lasteditedby="Mark">
  <title translate="true">Temp</title>
  <body>
    <header>
      <para styleclass="Heading1"><text styleclass="Heading1" translate="true">Temp</text></para>
    </header>
    <para styleclass="Normal"><text styleclass="Normal" translate="true">Enter topic text here.</text></para>
    <para styleclass="Normal"><table rowcount="4" colcount="3" style="width:100%; cell-padding:3px; cell-spacing:0px; page-break-inside:auto; border-width:1px; border-spacing:0px; border-collapse:collapse; cell-border-width:1px; border-color:#000000; border-style:solid; background-color:none; head-row-background-color:#c0c0c0; alt-row-background-color:none;">
      <thead style="vertical-align:top">
        <td colspan="3" style="vertical-align:middle; width:505px; background-color:#c0c0c0;">
          <para style="text-align:right; line-height:1.15;"><text styleclass="Font Style" style="font-family:Calibri; font-size:16pt; font-weight:bold; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">Partial Test Case Testing Values</text></para>
        </td>
      </thead>
      <thead style="vertical-align:top">
        <td style="vertical-align:middle; width:121px; background-color:#c0c0c0;">
          <para style="text-align:center; line-height:1.15;"><text styleclass="Font Style" style="font-family:Calibri; font-size:11pt; font-weight:bold; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">99_PartialTestCase</text></para>
          <para style="text-align:center; line-height:1.15;"><text styleclass="Font Style" style="font-family:Calibri; font-size:11pt; font-weight:bold; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">Value</text></para>
        </td>
        <td style="vertical-align:middle; width:134px; background-color:#c0c0c0;">
          <para style="line-height:1.15;"><text styleclass="Font Style" style="font-family:Calibri; font-size:11pt; font-weight:bold; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">Code</text></para>
        </td>
        <td style="vertical-align:middle; width:371px; background-color:#c0c0c0;">
          <para style="line-height:1.15;"><text styleclass="Font Style" style="font-family:Calibri; font-size:11pt; font-weight:bold; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">Comment</text></para>
        </td>
      </thead>
      <tr style="vertical-align:top">
        <td style="vertical-align:middle; width:121px;">
          <para style="text-align:center; line-height:1.15;"><text styleclass="Font Style" style="font-family:&apos;Times New Roman&apos;; font-size:11pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">0</text></para>
        </td>
        <td style="vertical-align:middle; width:134px;">
          <para style="line-height:1.15;"><text styleclass="Font Style" style="font-family:Calibri; font-size:11pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">00_Reserved</text></para>
        </td>
        <td style="vertical-align:middle; width:371px;">
          <para style="line-height:1.15;"><text styleclass="Font Style" style="font-family:Calibri; font-size:11pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">The value 0x0000 is reserved. No testing is performed.</text></para>
        </td>
      </tr>
      <tr style="vertical-align:top">
        <td style="vertical-align:middle; width:121px;">
          <para style="text-align:center; line-height:1.15;"><text styleclass="Font Style" style="font-family:Calibri; font-size:11pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">1</text></para>
        </td>
        <td style="vertical-align:middle; width:134px;">
          <para style="line-height:1.15;"><text styleclass="Font Style" style="font-family:Calibri; font-size:11pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">01_XLenSumsOk</text></para>
        </td>
        <td style="vertical-align:middle; width:371px;">
          <para style="line-height:1.15;"><text styleclass="Font Style" style="font-family:Calibri; font-size:11pt; font-weight:normal; font-style:normal; text-decoration:none; text-transform:none; vertical-align:baseline; color:#000000; background-color:transparent; letter-spacing:normal; letter-scaling:100%;" translate="true">Verify the relationship between ExtendedDataBlockLength and contained ExtendedDataAreaLength fields.</text></para>
        </td>
      </tr>
    </table></para>
  </body>
</topic>
Thanks.

-- Mark
User avatar
Tim Green
Site Admin
Posts: 23189
Joined: Mon Jun 24, 2002 9:11 am
Location: Bruehl, Germany
Contact:

Unread post by Tim Green »

Hi Mark,

I don't need to look at the code, there are almost always one of two simple causes for this: Check 1) The parapgraph settings in the merged cell and 2) The cell width in the merged cell with Table Properties > Selected Cells. You will find that there are either indents in the paragraph interfering with your formatting or the width of the cell is set to a fixed value and that is interfering with your alignment because it is not possible for the width of the merged cell.
Regards,
Tim (EC Software Documentation & User Support)

Private support:
Please do not email or PM me with private support requests -- post to the forum directly.
Mark Jerde
Posts: 28
Joined: Thu Nov 22, 2007 6:51 pm

Unread post by Mark Jerde »

Ah, the voice of experience! :D The merged cell had its Preferred Width set and unchecking it made the output what I expected. I appreciate the help.
Thanks.

-- Mark
Post Reply