Table layout is different in IE 8

Table layout is different in IE 8

fshafeeqfshafeeq Posts: 10Questions: 0Answers: 0
edited April 2013 in DataTables 1.9
I really like dataTables but I came across a problem. Table layout changes if view it on different version of IE. I have IE9 and when I was done designing everything looked good but when another user whos using IE 8 loaded the page table layout was different this user had to change the page zoom to 75% to see the correct layout. Also if the widow is minimized or maximized table heading size doesnt change according to the size and heading is not aligned with the TD. Any suggestions?

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Does this occur on the examples on this site as well? IE's zooming might not be something we are able to fix. Are you using fnAdjustColumnSizing on zoom change to have the columns align?

    Allan
  • fshafeeqfshafeeq Posts: 10Questions: 0Answers: 0
    I'm using fnAdjustColumnSizing but its not working. Every time browser size changes heading do not align with the column unless page is refreshed.
  • fshafeeqfshafeeq Posts: 10Questions: 0Answers: 0
    fnAdjustColumnSizing is working for me now! But still some minor issues. i.e If the borrower window is changed columns re adjust no problem but If a scroll bar is turned on after i load the page columns don't re size automatically. (lets say I clicked a link on my page and the body scroll bar automatically pops up columns do not re adjust) Any solution for that?
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Doesn't work even with zooming set to 100%? Can you link to a test case please?

    Allan
  • fshafeeqfshafeeq Posts: 10Questions: 0Answers: 0
    Im sorry not sure what zooming you are talking about or how to set zooming? Can you elaborate?
  • fshafeeqfshafeeq Posts: 10Questions: 0Answers: 0
    This is what I have so far...

    $(document).ready(function() {
    var oTable = $('#myTable').dataTable({
    "sScrollY" : "400px",
    "bPaginate" : false,
    "aaSorting": [],
    "bJQueryUI": true,
    "bScrollCollapse": true,
    "bAutoWidth": true


    });
    $(window).bind('resize', function () {
    oTable.fnAdjustColumnSizing();
    } );
    });
  • fshafeeqfshafeeq Posts: 10Questions: 0Answers: 0
    Thanks! I figured it out it works now!!
This discussion has been closed.