lai32290 / TableHeadFixer

A jQuery plugin for fix HTML table Head, Foot and Columns
105 stars 45 forks source link

Couldnt fix table with rowspan in first column #7

Closed niciliketo closed 8 years ago

niciliketo commented 9 years ago

Hi I couldn't correctly fix the first column of a table with this format:

<table>
  <tr>
    <td rowspan=2>title</td>
    <td> content</td>
  </tr>
  <tr>
    <td>content 2</td>
  </tr>
  <tr>
    <td>title2</td>
    <td>content3</td>
  </tr>
</table>

I want the first column to fix, but in row 2, the 2nd column is fixed (because this row does not have its own col1).

niciliketo commented 9 years ago

https://github.com/lai32290/TableHeadFixer/pull/8 is my attempt at fixing it, but not sure if this is the best way

lai32290 commented 9 years ago

Great! I will fix this problem