-
Notifications
You must be signed in to change notification settings - Fork 754
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
One-pixel offset in non-fixed rows when multiple tables on same page use scroller widget #1376
Comments
Hi @davidjkrause! Sorry for not responding earlier. Did the fix in #1382 resolve this issue as well? |
No worries, of course. The fix for #1382 is applied in https://jsfiddle.net/e1waajt1/3 and the one pixel offset is still there on the first table, but not on the second one. This is consistent across the browsers I've tested, including Chrome on a few platforms and Safari on Mac. |
Anyway, here is an updated demo which uses the scroller widget from the master branch. |
looks really good on safari, just letting you know. |
Oh I see it now I was looking at the top, you meant between the 2nd and 3rd visible row, yeah there I see an extra pixel |
Yeah, the row is still taking up space, but at least it's all aligned now. |
If I have two tables with the same class on a page that are set to use the scroller widget, and activated like this:
$('.player-pitch-table-fixedcols').tablesorter({
widthFixed: true,
theme: 'blackice',
widgets: ['zebra', 'scroller'],
sortInitialOrder: "desc",
widgetOptions: {
scroller_height: 0,
scroller_fixedColumns: 3
},
});
The first table has a missing height in the non-fixed div on a row with class "remove-me", and ends up being offset slightly.
I am able to work around it by adding this line to my CSS:
.tablesorter-scroller-spacer.remove-me { height: 1px; }
But without that forced height, at least the first table on the page will have the non-fixed rows one pixel higher than the fixed rows.
JSFiddle with a demonstration at https://jsfiddle.net/e1waajt1/1/
Very possible that I'm doing something else wrong here - maybe not supposed to use a class selector this way to set the scroller on multiple tables?
The text was updated successfully, but these errors were encountered: