jmosbech/StickyTableHeaders — Issue #1: header overflow if the table is inside a container
Author: MrHunt
Created: 2011-12-19 09:34:07+00:00
State: open

I like what you have done for making a fixed header html table. But since you are using 'position: fixed', there is this drawback of headers overflowing the container boundary, if the table is inside a containing div which has a given width/height and handles overflow using scrollbars.

I have modified your fiddle to show this here:

http://jsfiddle.net/cGF4W/

Try scrolling using the outside scrollbar & you'll see headers overflowing the boundary.
I think you can get rid of this using 'position:absolute' but then the scrolling logic goes for a toss.

I think the scenario of having tables within a container is very generic and when handled, will make this plugin very versatile.

Thanks.