Three Responsive Extension Bugs

Three Responsive Extension Bugs

JamaurJamaur Posts: 87Questions: 10Answers: 0

I'd like to report 3 bugs I noticed in the responsive extension:

1) The 'never' class successfully doesn't show a column in a child row but fails to hide the control column. Test case: http://live.datatables.net/cikocuke/2/edit

2) If the table's container/wrapper/parent is hidden and re-shown (such as the behaviour of tabs), responsive extension fails to adjust the columns accordingly. I can not provide a test case as i am unable to make responsive work in datatables live. Steps to re-produce the bug are shown below:

  1. Hide table before datatable Initialization
  2. Show table after datatable Initialization
  3. At this point, responsive extension should fail to adjust the columns after browser resize

3) The maximize button fails to adjust the columns, right after re-sizing. This behaviour can be seen in the table in this link: https://datatables.net/extensions/responsive/ . Steps to re-produce the bug are shown below:

  1. Resize the browser window, by dragging to a small sized screen in order to hide some columns in child rows.
  2. Click the Maximize button of the browser window, to return to fullscreen. (At this point, hidden columns are not re-shown)

Replies

  • allanallan Posts: 63,691Questions: 1Answers: 10,500 Site admin

    1) The 'never' class successfully doesn't show a column in a child row but fails to hide the control column.

    Thanks for the test case - very certainly a bug!

    2) If the table's container/wrapper/parent is hidden and re-shown

    The Responsive extension doesn't know that it has been shown or hidden through. You need to use the API to address that - see responsive.recalc().

    3) The maximize button fails to adjust the columns, right after re-sizing.

    Very odd! I don't have a windows computer available at the moment, but I will try that when I get to the office next week. Sounds like a browser bug not firing the resize even to me. Which browser are you using?

    Allan

  • JamaurJamaur Posts: 87Questions: 10Answers: 0

    Internet Explorer & Google Chrome, both produce the bug no. 3.

  • JamaurJamaur Posts: 87Questions: 10Answers: 0

    Regarding Bug no. 2, can the responsive extension determine if the table is being hidden by the parent (is(':visible')). I think that could solve the problem.

  • allanallan Posts: 63,691Questions: 1Answers: 10,500 Site admin

    can the responsive extension determine if the table is being hidden by the parent (is(':visible'))

    Certainly. But how would it know when to run that code? That's why there is an API method so you can call it when the tab library you are using fires an event to make it visible. I can't have it running in an infinite loop - that would be a serious performance issue.

    Allan

  • JamaurJamaur Posts: 87Questions: 10Answers: 0

    Good point. I'll try to find a workaround for my problem.

  • JamaurJamaur Posts: 87Questions: 10Answers: 0

    Hi.

    I know you release an update nightly version of Responsive but the problem still persists.
    If there is a dedicated control column, it fails to hide.

    Test Case below: (In this case the Control Column is the control column and it should be hiding)

    http://live.datatables.net/cikocuke/3/edit

  • JamaurJamaur Posts: 87Questions: 10Answers: 0

    I update the test case to better understand the problem:
    http://live.datatables.net/safuqado/1/edit

  • allanallan Posts: 63,691Questions: 1Answers: 10,500 Site admin

    Fix committed. The nightly is rebuilding at the moment :-)

    Regards,
    Allan

  • JamaurJamaur Posts: 87Questions: 10Answers: 0

    Thanks for the fix...

This discussion has been closed.