too long string in responsive Datatables dont work correct

too long string in responsive Datatables dont work correct

zukiizukii Posts: 13Questions: 4Answers: 0
edited January 2017 in Free community support

Hey guys,

i have a dataTable with the responsive extension and i have problems with long strings on the 2nd site (with pagination).

The responsive extension works pretty fine if the long string is on first site
watch the following fiddle: https://jsfiddle.net/zukii/m47qw2ss/3/

but if the long string is on 2nd site, the responsive extension gets problems and goes bigger then the container (the width is too large)!
watch the following fiddle: https://jsfiddle.net/zukii/m47qw2ss/2/

is there any solution for this problem?

Answers

  • allanallan Posts: 63,839Questions: 1Answers: 10,518 Site admin

    Add width="100%" to your table: https://jsfiddle.net/m47qw2ss/4/

    Allan

  • zukiizukii Posts: 13Questions: 4Answers: 0

    Thanks for your quick response :)

    Unfortunately this also don't work -> the 2nd site is still too large..

    It only works on first site :(

  • allanallan Posts: 63,839Questions: 1Answers: 10,518 Site admin

    I'm not sure what you mean by "site" I'm afraid. The updated fiddle I linked to appears to work okay for me. Does it not for you?

    Allan

  • zukiizukii Posts: 13Questions: 4Answers: 0

    hey, thanks for your answer again :)

    There is a pagination on bottom right and if u click there on "2" (2nd site). You will see the width="100%" don't work anymore. it becomes bigger then the viewport and the responsive state also don't trigger..

    do you know / see what I mean?

    additional there are 2 pictures...

    greetings and thanks for your help

    PS: If the long string is on first site, the whole datatable goes in responsive state and everything is fine... watch this fiddle: https://jsfiddle.net/zukii/m47qw2ss/5/

  • allanallan Posts: 63,839Questions: 1Answers: 10,518 Site admin

    Yup - got it now. I see the issue and that does indeed look like a bug. I'm not immediately sure why that is happening I'm afraid. I've added it to my list!

    Allan

  • zukiizukii Posts: 13Questions: 4Answers: 0

    What a pity :( how can I get informations, if this is fixed in future?

    thanks for your help.. ;)

  • allanallan Posts: 63,839Questions: 1Answers: 10,518 Site admin

    I will post back in this thread when it is fixed.

    Allan

  • zukiizukii Posts: 13Questions: 4Answers: 0

    cool .. much tanks to you .. awesome support

This discussion has been closed.