sScrollX Safari Issue

sScrollX Safari Issue

berryboyberryboy Posts: 6Questions: 0Answers: 0
edited July 2012 in General
Hey guys,
I'm trying to make a large datatable wok nicely with mobile devices. To do this, I tried using the sScrollX property on this table. It works great on most browsers except I've noticed an issue with Safari and Mobile Safari. When I load the table full res on my desktop browser, the table looks normal. When I try resizing it to the 480px res, it works normally as well and scrolls horizontally. The issue occurs when the page is loaded initially at the small res (desktop browser and mobile devices). Any help would be greatly appreciated!

Replies

  • berryboyberryboy Posts: 6Questions: 0Answers: 0
    [quote]berryboy said: Edit[/quote]

    Here's the table: http://honedge.com/90430565 (Detailed Player Statistics)
  • allanallan Posts: 63,540Questions: 1Answers: 10,476 Site admin
    Have you got sScrollX enabled? It looks like the table is being drawn in a box that is simply too small for the content. Enabled sScrollX:100% should alleviate that.

    Allan
  • berryboyberryboy Posts: 6Questions: 0Answers: 0
    [code]
    $("#example").dataTable({
    bFilter: false,
    bSort: false,
    bPaginate: false,
    bAutoWidth: false,
    sScrollX: "100%",
    bScrollCollapse: true,
    "sScrollXInner": "100%"
    })
    [/code]
    This is what I have currently- it seems to only be broken in Safari :/
  • allanallan Posts: 63,540Questions: 1Answers: 10,476 Site admin
    If you remove the sScrollXInner option (since having it set to 100% doesn't actually do anything)?

    Allan
  • berryboyberryboy Posts: 6Questions: 0Answers: 0
    I solved it by defining a width on each cell- all good now.
This discussion has been closed.