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

Fix calculating column width #614

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kzmi
Copy link

@kzmi kzmi commented Jul 31, 2015

With "scrollY" and "scrollCollapse: true" options and with custom CSS styling, determining table size fails in some cases.
In that case, inner table has 100% width (no space for scrollbars) but scrollbars appear on the table.

A sample based on 1.10.7.
http://jsfiddle.net/kzmi/52qzczL9/

With my workaround. (only replaced jquery.dataTables.js with my version)
http://jsfiddle.net/kzmi/e53LjLpx/

This workaround are based on 1.10.7, but the issue seems to be still there in 1.10.8-dev.

kzmi added 2 commits July 31, 2015 19:28
Removing border-top/bottom or padding-top/bottom will change height of the table.
If the table size was changed smaller than divBody, the vertical scrollbar will disappear, and column width may change wider.
It is not the expected result because height of divBody has already been expanded including borders and paddings of the header.
@DataTables
Copy link
Collaborator

Thanks for this - #612 also refers to a bug in scrolling that has been introduced since 1.10.7 - I've done some work there that broke things... I'll look into this in detail and get back to you.

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

Successfully merging this pull request may close these issues.

2 participants