Skip to content
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

cssStickyHeaders not attached to div #1371

Closed
luchopb opened this issue Mar 21, 2017 · 4 comments
Closed

cssStickyHeaders not attached to div #1371

luchopb opened this issue Mar 21, 2017 · 4 comments

Comments

@luchopb
Copy link

luchopb commented Mar 21, 2017

Hello,

My webpage has a bootstrap navbar fixed to top, and when I use stickyheaders they are behind the navbar, I want them to be under de navbar but I can't do it. I set the option cssStickyHeaders_attachTo : '.navbar', but still not working...

Someone please can explain to me how it works?

@Mottie
Copy link
Owner

Mottie commented Mar 21, 2017

Hi @luchopb!

Please modify this demo to help me troubleshoot the problem.

@Mottie
Copy link
Owner

Mottie commented Apr 9, 2017

Oh, I think I understand... set the cssStickyHeaders_offset option - demo

$(function () {
	$('table').tablesorter({
		theme: 'bootstrap',
		headerTemplate: '{content}{icon}',
		widgets: ['zebra', 'cssStickyHeaders', 'uitheme'],
		widgetOptions: {
      cssStickyHeaders_offset: $('.navbar').height(),
			cssStickyHeaders_attachTo: null
		}
	}).tablesorterPager({
		container: $('.ts-pager'),
	});
});

@Mottie
Copy link
Owner

Mottie commented Apr 19, 2017

I'm guessing this issue has been resolved, so I'm going to close it. If you continue to have problems, please feel free to continue the discussion in this thread.

@Mottie Mottie closed this as completed Apr 19, 2017
@luchopb
Copy link
Author

luchopb commented Apr 19, 2017

Yes, thank you so much for your help. It worked!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants