FixedHeader alignment with row including colspan in

FixedHeader alignment with row including colspan in

Mik3yZMik3yZ Posts: 1Questions: 1Answers: 0
edited April 2016 in Free community support

Hello all,

please see this page: http://live.datatables.net/fadoteba/1/

The problem i am having is that when i have a thead like this:

<thead>
    <tr style="background-color: #99b3ff">
        <th align="left" colspan="13">
            somelongnamehere-dsadsadsadsadsadsa<br />
            Total LPARs: 9<br />
            Planned LPARs: 0<br>
            <br>
            Free memory: 286 GB (excl planned lpars)<br />
            Total vCPU (incl planned): 21
        </th>
    </tr>
    <tr>
        <th width="100">Customer</th>
        <th>Frame</th>
        <th>LPAR</th>
        <th>CPU<br>Virtual</th>
        <th>Cluster</th>
        <th>Bubble</th>
        <th>ProcPool</th>
        <th>Mem (GB)</th>
        <th>Add<br>Mem (GB)</th>
        <th>Total<br>Mem (GB)</th>
        <th>Mem<br>overhead (GB)</th>
        <th>AME</th>
        <th>ReqID</th>
    </tr>
</thead>

It screws up the alignment of the fixedheader, when i remove the first <tr> with the th and the colspan it works like it should. what can i do to get this fixed?

Answers

  • 3Dad3Dad Posts: 1Questions: 0Answers: 0

    Ran into exactly this today. Other than not using colspan like this, are there any other solutions?

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Currently no - sorry. The colspan is not updated for the hidden columns, resulting in the misalignment that you see.

    This is an area that I know FixedHeader (and DataTables in general) needs to be improved.

    Allan

  • that_dirk_guythat_dirk_guy Posts: 2Questions: 0Answers: 0

    I have a similar problem with colspans & rowspans. Here's a simple test case: http://live.datatables.net/jugezuyu/1/edit

    The width of the top header columns is correctly preserved, but the lower columns revert to equal widths. A fix for this would be nice. I can cough up some money if that would help...

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    I'm a little tied up at the moment, but I'll try to take a look into what the issue is in the next week or two.

    Allan

This discussion has been closed.