FixedHeader alignment with row including colspan in
FixedHeader alignment with row including colspan in
Mik3yZ
Posts: 1Questions: 1Answers: 0
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?
This discussion has been closed.
Answers
Ran into exactly this today. Other than not using colspan like this, are there any other solutions?
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
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...
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