Opened 18 years ago
Closed 18 years ago
#1076 closed Task (fixed)
Cell position calculation algorithm in FCKTools.GetPositionalCellIndex() and dragresizetable plugin is not accurate
| Reported by: | Martin Kou | Owned by: | Martin Kou |
|---|---|---|---|
| Priority: | Normal | Milestone: | FCKeditor 2.5 Beta |
| Component: | General | Version: | SVN (FCKeditor) - Retired |
| Keywords: | Cc: |
Description
The current algorithm does not account for cells with rowSpan > 1. I should change them to using FCKTableHandler._CreateTableMap() instead.
Change History (2)
comment:1 Changed 18 years ago by
comment:2 Changed 18 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
[696] fixed the bug in the dragresizetable plugin.

Here is a test case where the old position calculation algorithm fails:
<p>This is some <strong>sample text</strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor</a>.</p> <p> </p> <table cellspacing="1" cellpadding="1" width="200" border="1"> <tbody> <tr> <td> </td> <td> </td> <td rowspan="2"> </td> <td> </td> <td> </td> </tr> <tr> <td rowspan="2"> </td> <td> </td> <td rowspan="2"> </td> <td> </td> </tr> <tr> <td rowspan="2"> </td> <td> </td> <td rowspan="2"> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> </tbody> </table> <p> </p>Using this table with the dragresizetable plugin, for example, would cause the wrong columns to be resized.
[675] and [676] have fixed the bug in the "Merge Down" command.