Scrolling tables would automatically resize if width="100%" is applied #162

Closed
DataTables opened this Issue Feb 28, 2013 · 0 comments

Projects

None yet

1 participant

@DataTables
Owner

Related to this discussion: http://datatables.net/forums/discussion/14363 . I was going to add a comment to say that you should call fnAdjustColumnSizing if you want it to work with scrolling tables, but really DataTables should do that automatically, since it already has 'smart' handling for width="100%".

@DataTables DataTables added a commit that closed this issue Mar 3, 2013
@DataTables Fix #162 - Flexible width is width="100%" is applied as attribute to …
…the HTML table

- Attach an event handler to the window to resize the table. Note that
  this isn't debounced - possibly it should be in future(?), but don't
  want to add the additional code required if it isn't required. It
  seems to function perfectly well for me!

- Unbind needs to unbind by the instance unique reference since there
  might be multiple tables listening for the event.
b87187f
@DataTables DataTables closed this in b87187f Mar 3, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment