Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jquery tablesorter pager css issue

I'm using a table with tablesorter and tablesorter.pager. Both the table and pager are in a div with a background colour.

The issue I'm having is with the pager. It isn't being contained within the div, and instead floats below it. I assume it's an issue with 'display' or 'position' but whatever I do I can't get it to stay within the bounds of the container div.

Help!!

like image 285
pfeds Avatar asked Dec 16 '22 07:12

pfeds


2 Answers

you don't need to remove the fixPosition, you should just set the positionFixed to false. It's by default true.

$('table').tablesorterPager({positionFixed: false, container: $("#pager")});
like image 59
user447586 Avatar answered Jan 25 '23 04:01

user447586


To answer my own question...

In the jquery.tablesorter.pager.js file, in the fixPosition function, it is coded to always set the pager to be position: absolute. I've removed this line which solves my problem, but I would be interested to know why this was done!?

like image 45
pfeds Avatar answered Jan 25 '23 04:01

pfeds