Extra space before and after <entry> element in cell

<oXygen/> general issues.
AnalogKid82
Posts: 6
Joined: Fri Nov 15, 2019 9:13 pm

Extra space before and after <entry> element in cell

Post by AnalogKid82 » Wed May 13, 2020 7:52 pm

I use the same conkeyref in the first column of two different rows within the same three-column table. In one row with this key, in column three, there is no extra space before and after the entry (
space-col1-not-col3.png
space-col1-not-col3.png (79.25 KiB) Viewed 123 times
). But, in the other row with this key, in column three, there is extra space before and after the entry element (
space-col3-not-col1.png
space-col3-not-col1.png (55.93 KiB) Viewed 123 times
). Could you tell me how to remove the extra space? Thanks!

Radu
Posts: 6980
Joined: Fri Jul 09, 2004 5:18 pm

Re: Extra space before and after <entry> element in cell

Post by Radu » Thu May 14, 2020 7:11 am

Hi,

A table row has a certain height. In order to compute the height of the row Oxygen needs to see which cell takes up the most vertical space.
For the first screenshot, in the row the 3'rd cell seems to take up the most vertical space, so it is the cell which determines the row height. The first cell on the same row has less vertical space so it gets aligned to the middle of the cell area.
In the second screenshot, the cell which takes the most vertical space is the first cell in the row, so it determines the row height. And the third cell in the row is aligned to the middle of the cell's available space.

A couple of extra remarks:

- If you want to impose the vertical alignment for cells, you can select the entire table (using the Outline view for example) then right click in the editing area and choose "Table->Table Properties", in the dialog which shows up you go to the "Cells" tab and set the Vertical align radio to "Top" instead of leaving the default alignment.
- The published output may not look exactly like the table layout in which you are editing. The published output will not show the full tags, various icons used to show links and content references in the editor area. So you may also want to look at how that looks like.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

AnalogKid82
Posts: 6
Joined: Fri Nov 15, 2019 9:13 pm

Re: Extra space before and after <entry> element in cell

Post by AnalogKid82 » Fri May 15, 2020 4:18 pm

Thanks Radu!

Post Reply