Skip to content

Commit

Permalink
Fix: Redraw the table if resizing causes column visbility to change w…
Browse files Browse the repository at this point in the history
…hen there is no data to show in the table.

- Thread 41632
  • Loading branch information
AllanJard committed Apr 4, 2017
1 parent e73071c commit 169a61c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions js/dataTables.responsive.js
Expand Up @@ -775,6 +775,11 @@ $.extend( Responsive.prototype, {

// Inform listeners of the change
$(dt.table().node()).trigger( 'responsive-resize.dt', [dt, this.s.current] );

// If no records, update the "No records" display element
if ( dt.page.info().recordsDisplay === 0 ) {
dt.draw();
}
}
},

Expand Down

0 comments on commit 169a61c

Please sign in to comment.