Row width and browser zoom
Row width and browser zoom
I had a post a little while back about row columns not filling 100% the width of the grid. I realized this problem was fixed when I restored my view from 90% to 100%. This may be something that should go in bugs but has anyone else had this problem or figured out a way around it? So long as my browser zoom is divisible by 100 there is no gap at the right end of my rows else there is.
Thanks,
JMorrison
Thanks,
JMorrison
This discussion has been closed.
Replies
Allan
[code]
var oTable;
function CreateMessageTable(f) {
oTable = $('#messageTable').dataTable({
"bServerSide": true,
"sAjaxSource": f,
"bAutoWidth": false,
"oLanguage": { "sEmptyTable": "No messages found" },
"bProcessing": true,
"bLengthChange": false,
"bScrollInfinite": true,
"oScroller": { "loadingIndicator": true },
"bProcessing": true,
"sScrollY": "275px",
"fnDrawCallback": function (oSettings) {
for (var i = 0, il = oSettings.aoData.length; i < il; i++) {
if (oSettings.aoData[i]._aData[5] == "unread new") {
oSettings.aoData[i].nTr.className = " message_unread";
} else {
oSettings.aoData[i].nTr.className = " message_read";
}
}
},
"fnInitComplete": function (oSettings) {
for (var i = 0, il = oSettings.aoData.length; i < il; i++) {
if (oSettings.aoData[i]._aData[5] == "unread new") {
oSettings.aoData[i].nTr.className = " message_unread";
} else {
oSettings.aoData[i].nTr.className = " message_read";
}
}
},
"aoColumns": [
{ "sName": "Subject",
"fnRender": function (oObj) {
if (oObj.aData[5] == "True") {
return "" + oObj.aData[0] + "";
} else {
return "" + oObj.aData[0] + "";
}
}
},
{ "sName": "Message Type",
"fnRender": function (oObj) {
if (oObj.aData[5] == "True") {
return "" + oObj.aData[1] + "";
} else {
return "" + oObj.aData[1] + "";
}
}
},
{ "sName": "Date",
"sType": "date",
"fnRender": function (oObj) {
if (oObj.aData[5] == "True") {
return "" + oObj.aData[2] + "";
} else {
return "" + oObj.aData[2] + "";
}
}
}
]
});
oTable.fnSort([[2, 'asc']]);
}
[/code]
Thanks for the help!
Allan
Hi guys,
I'm experiencing this issue. It's fairly consistent across browsers, anyone come up with any solutions?