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

Column Selector & Fixed Widths #740

Closed
glend1 opened this issue Oct 6, 2014 · 5 comments
Closed

Column Selector & Fixed Widths #740

glend1 opened this issue Oct 6, 2014 · 5 comments

Comments

@glend1
Copy link

glend1 commented Oct 6, 2014

Hello again! :p

It appears as though when using the fixed widths option with the column selector widget the fixed width option stops the column selector from automatically resizing, but only in firefox, it seems.
This is an issue because when using pagination the column widths can jump around quite a bit.

@Mottie
Copy link
Owner

Mottie commented Oct 6, 2014

Hi @doveyg!

It looks like I needed to hide the <col> within the <colgroup> to make it work properly in Firefox. I've made this change in the working branch of the repo. You can see it working in this demo.

@glend1
Copy link
Author

glend1 commented Oct 7, 2014

Thanks, works perfectly.

@glend1
Copy link
Author

glend1 commented Oct 8, 2014

I think i've noticed another problem. It may be related or separate. Hiding col 0 hides the footer cell/row... The footer I am using spans the entire table.

I'll get around to figuring out when the bug occurs more specifically shortly, just wanted to let you know in case its one of those simple bugs.

@Mottie
Copy link
Owner

Mottie commented Oct 8, 2014

Hi @doveyg!

As I stated in this issue, the columnSelector widget uses css to hide the columns. So you can:

  • Avoid hiding the first column, or

  • Add a css definition that has higher specificity to keep the cell visible

    table.tablesorter tfoot th[colspan] { display: table-cell; }

@glend1
Copy link
Author

glend1 commented Oct 8, 2014

thank you, that works.

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