Page 1 of 1
Author 11.2 table columns can't be dragged
Posted: Mon Jul 12, 2010 6:03 am
by maglid
I have DITA files with tables in Oxygen Author 11.2. On some tables I can't drag table columns to size them.
I click a table column and drag it, then I get the Resize table columns dialog, then I choose either of the options and click yes. colspecs are added to the table. Then I click and drag a column again and the Resize table columns dialog appears again. This happens every time I try to drag a column. I can still change the colspec widths manually.
Some tables work fine, I can resize their columns. Any idea what the problem is?
Thanks
Re: Author 11.2 table columns can't be dragged
Posted: Mon Jul 12, 2010 11:33 am
by adrian
Hello,
Thank you for the feedback.
As a note, you should know that Oxygen's drag and drop table resizing support does not work for DITA customizations that add their own customized tables. We are aware of this limitation and we plan to resolve it in a future version of Oxygen.
If you are not using a DITA customization, could you create a small snippet of the XML code of such a table for which Oxygen fails to resize columns?
Or could you maybe send us the file for analysis at
support@oxygenxml.com ?
Regards,
Adrian
Re: Author 11.2 table columns can't be dragged
Posted: Mon Jul 12, 2010 11:03 pm
by maglid
Hi Adrian,
I figured out the problem. I converted these DITA files from unstructured FrameMaker, and when Framemaker saves the file to XML it adds colname attributes. Then Oxygen added colspec elements with colname attributes that didn't match the existing. I found I could fix it two ways: remove all the colname attributes from the table, or make them match the colnames that Oxygen added. See sample of incorrect code below.
Thanks,
Mark
Code: Select all
<table>
<tgroup cols="2">
<colspec colnum="1" colname="c1" colwidth="1.0*"></colspec>
<colspec colnum="2" colname="c2" colwidth="6.41*"></colspec>
<thead>
<row>
<entry colname="1">RangeModifier Attributes</entry>
<entry colname="2">Description</entry>
</row>
</thead>
<tbody>
<row>
<entry colname="1">
<p>-OffsetReference</p>
</entry>
Re: Author 11.2 table columns can't be dragged
Posted: Tue Jul 13, 2010 9:33 am
by adrian
Thank you for the sample.
So, to clarify, the original table as it was saved by FrameMaker had no
colspec elements but had
colname attributes in
entry elements. Did I get that right?
e.g.
Code: Select all
<table>
<tgroup cols="2">
<thead>
<row>
<entry colname="1">RangeModifier Attributes</entry>
<entry colname="2">Description</entry>
</row>
</thead>
<tbody>
<row>
<entry colname="1">
<p>-OffsetReference</p>
</entry>
</row>
</tbody>
</tgroup>
</table>
Then when attempting to resize the columns Oxygen added the colspec elements with its own colname attributes and disregarded the existing colname attributes from entries. As a result the table ended up as in your sample. Right?
I'll add this to our issue tracking tool and it will be resolved in a future version of Oxygen.
Regards,
Adrian
Re: Author 11.2 table columns can't be dragged
Posted: Tue Jul 13, 2010 8:12 pm
by maglid
adrian wrote:
So, to clarify, the original table as it was saved by FrameMaker had no colspec elements but had colname attributes in entry elements. Did I get that right?
Not quite. To be fair to FrameMaker (version 7.2), I went back and did a test, and FrameMaker did add colspec elements in addition to colname attributes. I tested these tables straight from FrameMaker and Oxygen will properly let me drag column widths.
However, when cleaning up the XML file made by FrameMaker, I removed the colspec elements and left the colname attributes, and this is what confused Oxygen and caused the column-dragging problem. It was my mistake. So if you can code Oxygen to fix my stupidity, that would be good.
Thanks
Re: Author 11.2 table columns can't be dragged
Posted: Wed Jul 14, 2010 10:26 am
by adrian
Thank you for clarifying the situation.
We'll guard this problem and make the mechanism less error prone.
Thank you for the feedback.
Regards,
Adrian