I am creating a timeline interface using jQuery and CSS. I am using jScrollPane for scrolling it.
I have
parentdiv which wraps all the div and on which jScrollPane is appliedheaderdiv should be fixed while scrolling vertically, but scroll when scrolled horizontally andleftpanediv should be fixed while scrolling horizontally, but scroll when scrolled vertically
Sample Image

JSFiddle Link : http://jsfiddle.net/gACZ8/4/
Any ideas?
You can use jscrollpane events.
Demo: http://jsfiddle.net/gACZ8/10/
Also you should add
position:relativeto both divs (to move them with top/left without moving other blocks) andz-indexto header (to make it overflow sidebar).