DataTables / SearchPanes

SearchPanes extension for DataTables
https://datatables.net
Other
19 stars 11 forks source link

Scroller breaks SearchPanes (with Button Initialisation) #31

Open band79 opened 1 year ago

band79 commented 1 year ago

As soon as I include the scroller extension (I don't need it in the example, but in the real script), no more entries are displayed in the SearchPanes after a certain line number (when using the button initialization). But the scrollbar suggests that there are many more. If I search for e.g. "Tiger Nixon 175", the entry is displayed. Without a search entry, "Tiger Nixon 175" is missing in the list.

JSFiddle Link

AllanJard commented 1 year ago

Thanks! There does indeed appear to be an issue with Scroller there. It probably needs the scroller.measure() method called when the popover is shown.

band79 commented 1 year ago

It probably needs the scroller.measure() method called when the popover is shown.

Thanks for your reply! The scroller is not initialised at all in the example, just the scroller.min.js is included. Nevertheless, I have tried it with the following call when the popover is shown. Unfortunately, it has no effect.

$.fn.dataTable .tables( { visible: true, api: true } ) .scroller.measure();