Header Widths being incorrectly calculated only on Firefox
Header Widths being incorrectly calculated only on Firefox
cwhiteNovartis
Posts: 2Questions: 0Answers: 0
I have a table with ScrollY set to 90% and the widths of the columns percentages that add up to 100%. In ie8/9 this works fine. On Firefox the widths of the table body columns are calculated correctly but the header columns are calculated as if their style was set to "width:auto;" ie minimum needed size for their content. Since you set the width in the element itself I cannot event set the width I want in css. Both the hidden header columns and the visible columns are calculated this way. I have tried every tactic I have found on these forums to fix this problem and nothing works. I have also tried using the Scroller extra and not using it with no relevant difference in the page or the html generated. The table is very simple, no real custom functionality, other than adding a widget to one of the cells in each row. Since rows aren't added until after the table is displayed this can't be the reason for the incorrect calculation. I've looked at the _fnScrollDraw function and cannot detect where the problem is occurring.
Any ideas would be welcome.
Chris
Any ideas would be welcome.
Chris
This discussion has been closed.
Replies
{
bJQueryUI:true,
bPaginate:false,
bAutoWidth:false,
sScrollY:"90%",
bScrollCollapse:true,
aLengthMenu:[5,10,20,"All"],
bLengthChange:false,
bFilter:false,
bSort:true,
bInfo:false,
aaData:[],
aoColumns:[{
sTitle:"",
sWidth:"10%",
bSortable:false,
sClass:"selection-container sig sig-content",
sDefaultContent:""
},
{
sTitle:"Structure",
sWidth:"20%",
bSortable:false,
sClass:"structure-info sig-content",
sDefaultContent:""
},
{
sTitle:"Amount(mg)",
sWidth:"15%",
bSortable:true,
sClass:"amount sig-content",
mDataProp:"Amount"
},
{
sTitle:"Purity(%)",
sWidth:"15%",
bSortable:true,
sClass:"purity sig-content",
mDataProp:"Purity"
},
{
sTitle:"NVP Number",
sWidth:"20%",
bSortable:true,
sClass:"nvp sig-content",
mDataProp:"Concept.UID",
sDefaultContent:""
},
{
sTitle:"Sample ID",
sWidth:"20%",
bSortable:true,
sClass:"nsn sig-content",
sDefaultContent:""
}]
}
}