kolgepratik / js.tableutils

A jQuery plugin for HTML Tables. You can - Fix Table Headers with both Vertical and Horizontal Scrolling support, Add master CheckBox, Enable Sorting, Filtering, Client-side and Server-side Numeric, Alphabetic and Alphanumeric Pagination, Addition of new rows to the table, Deletion of exiting rows, Editing of existing rows.
13 stars 7 forks source link

Fixed an issue with scrollbars on fixed header tables #5

Closed Dam-Buty closed 2 years ago

Dam-Buty commented 11 years ago

OK this may be only happening to me. With a fixed header and pagination, if i navigate to a page where there is more content, the table scrolls, so it has a scrollbar, which changes the sizes of the columns. But the fixed header doesn't change, so the columns fall out of alignment. Better explained with a screenshot : http://testdam.correosolucion.com/github/scrollbar.png So i added a little hack to applyTableStyling() that calculates the scrollbar's width and pads the header accordingly. Result : http://testdam.correosolucion.com/github/scrollbar2.png

kolgepratik commented 11 years ago

Hi Dam, I was not able to replicate the issue you have mentioned here. I tried to have a similar scenario as you had but the bug was not replicated. I tested it 3 different browsers but it worked properly. I reckon this may have got something to do with the configuration. For the same reason, could you post the HTML code for the table along with the related JavaScript code where you call the plugin. This would help me better understand the behaviour of plugin and make the corrections that you suggested and merge the patch in the main branch.

Dam-Buty commented 11 years ago

Hi,

Right now the bug is on a login protected page, but i'll try and whip up a demo or a fiddle so you can see it in action.

Thanks for your answer, Dam

On Fri, Aug 2, 2013 at 2:24 AM, kolgepratik notifications@github.comwrote:

Hi Dam, I was not able to replicate the issue you have mentioned here. I tried to have a similar scenario as you had but the bug was not replicated. I tested it 3 different browsers but it worked properly. I reckon this may have got something to do with the configuration. For the same reason, could you post the HTML code for the table along with the related JavaScript code where you call the plugin. This would help me better understand the behaviour of plugin and make the corrections that you suggested and merge the patch in the main branch.

— Reply to this email directly or view it on GitHubhttps://github.com/kolgepratik/tableutils/pull/5#issuecomment-21990368 .