Opened 12 years ago

Last modified 12 years ago

#9410 confirmed Bug

An issue applying rowspan for the last column of a table

Reported by: Vladimri S. Owned by:
Priority: Normal Milestone:
Component: Core : Tables Version: 3.1
Keywords: Cc:

Description

When rowspan is applied columnwise to the equal amount of rows, e.g.

<table border="1" cellpadding="1" cellspacing="1" style="width: 500px;">
	<tbody>
		<tr>
			<td colspan="1" rowspan="3">
				&nbsp;</td>
			<td colspan="1" rowspan="3">
				&nbsp;</td>
			<td>
				&nbsp;</td>
		</tr>

...rowspan'ing the last column the same way in WYSIWIG should most probably lead to replacing all previously made rowspans and colspans with simple <td></td>, but it doesn't. It leads to strange errors and weird table behaviour.

Change History (4)

comment:1 in reply to:  description Changed 12 years ago by Vladimri S.

rowspan'ing the last column the same way in WYSIWIG

By this I meant "applying 'merge cells' though context menu in UI", to be precise.

comment:2 Changed 12 years ago by Jakub Ś

Keywords: ui table rowspan merging cells removed
Status: newpending
Version: 3.6.4

rowspan'ing the last column

This is impossible with code you have provided (merge option is disabled)

Could you please provide full html example and detailed steps explaining how to reproduce the issue?

Please write in which browser it occurs.

comment:3 Changed 12 years ago by Vladimri S.

Oh, I see, here's more detail: It occurs in Firefox 15.0.1 (the newest version). Here's the full example of a regular 3x3 table, where rowspan via UI's "Merge Cells" has been applied to first two rows (except the last column).

<table border="1" cellpadding="1" cellspacing="1" style="width: 500px;">
	<tbody>
		<tr>
			<td colspan="1" rowspan="2">
				&nbsp;</td>
			<td colspan="1" rowspan="2">
				&nbsp;</td>
			<td>
				&nbsp;</td>
		</tr>
		<tr>
			<td>
				&nbsp;</td>
		</tr>
		<tr>
			<td>
				&nbsp;</td>
			<td>
				&nbsp;</td>
			<td>
				&nbsp;</td>
		</tr>
	</tbody>
</table>
<p>
	&nbsp;</p>

Obviously, when "Merge Cells" is applied to the two remaining cells of the last un-rowspan'd column, it must result in table turning into 2x3 form without any rowspan'd cells, like this:

<table border="1" cellpadding="1" cellspacing="1" style="width: 500px;">
	<tbody>
		<tr>
			<td>
				&nbsp;</td>
			<td>
				&nbsp;</td>
			<td>
				&nbsp;</td>
		</tr>
		<tr>
			<td>
				&nbsp;</td>
			<td>
				&nbsp;</td>
			<td>
				&nbsp;</td>
		</tr>
	</tbody>
</table>
<p>
	&nbsp;</p>

...which doesn't happen. These two remaining cells are being in fact rowspan'd too:

<table border="1" cellpadding="1" cellspacing="1" style="width: 500px;">
	<tbody>
		<tr>
			<td colspan="1" rowspan="2">
				&nbsp;</td>
			<td colspan="1" rowspan="2">
				&nbsp;</td>
			<td colspan="1" rowspan="2">
				&nbsp;</td>
		</tr>
		<tr>
			<td>
				&nbsp;</td>
			<td>
				&nbsp;</td>
			<td>
				&nbsp;</td>
		</tr>
	</tbody>
</table>
<p>
	&nbsp;</p>

Which looks in browser (tested in Firefox and Chrome) more like 1x6 table with a thick upper border in last three cells.

The more rows you have, the weirder results you get, when rowspan'ing any number of rows (excluding the last one) columnwise.

Thank you in advance!

comment:4 Changed 12 years ago by Jakub Ś

Component: GeneralCore : Tables
Status: pendingconfirmed
Version: 3.1

Reproducible in all browsers from CKEditor 3.1

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy