th labels wraps when using jQuery UI

th labels wraps when using jQuery UI

robberronesrobberrones Posts: 4Questions: 0Answers: 0
edited May 2012 in Bug reports
Hello,
I am using jQuery UI with datatables, and I'm running into this issue. I couldn't find it anywhere in the forum.

When datatables recalculates/repopulates the theads with jQuery UI, it inserts a floated span into the div, but doesn't wrap the original text with a floated span as well. So the code would look like this:



<!-- NEED FLOATED SPAN HERE-->Rate Package




Besides specifying widths, is there any other fix? Is it possible to add the span in?

Thanks,
Rob

Replies

  • allanallan Posts: 63,382Questions: 1Answers: 10,449 Site admin
    Perhaps:

    [code]
    div.DataTables_sort_wrapper { white-space: nowrap; }
    [/code]

    ?

    Allan
  • robberronesrobberrones Posts: 4Questions: 0Answers: 0
    Thanks for the fast response!

    That fixes the wrapping, but because the inline widths are calculated already, the table expands outside it's container. I've tried manipulating the width though CSS, but that hasn't worked either.
This discussion has been closed.