gantt
gantt copied to clipboard
fixed grid Header when rolling
fixed grid Header when rolling
For now, I have extended the Gantt class and implemented the changes from this commit: https://github.com/frappe/gantt/pull/100/commits/8b94aa97fdec373ac09d0ae6912e948f8fe9d0a1
Was it solved? If I scroll too much to the bottom - the header with dates is lost and the whole chart is useless
@netchampfaris @swkasica @gavindsouza
Was also wondering if anyones converted the changes from 8b94aa9 into something that works. Copying over the code seems to result in issues.
Here's a copy paste solution for those who still need it. https://github.com/medmiskini/gantt/commit/531c5e178449e2a247e5fd5598dc272f7b71cdef
Here's a copy paste solution for those who still need it. medmiskini@531c5e1
thank you so much it works for me!!
Ehi! Anyone that is able to adapt @medmiskini solution to new code?
I tried to "merge" but it didn't work!
EDIT: after futher investigations, the only part on medmiskini solution that didn't works for me is the one on event listener. I change this part in this way:
$.on(this.$container, 'scroll', e => { this.layers.date.setAttribute('transform', 'translate(0,'+ e.currentTarget.scrollTop +')'); }); //STICKY (added)
@PriyaBihani is that what you need?
Let me know.
Ehi! Anyone that is able to adapt @medmiskini solution to new code?
I tried to "merge" but it didn't work!
EDIT: after futher investigations, the only part on medmiskini solution that didn't works for me is the one on event listener. I change this part in this way:
$.on(this.$container, 'scroll', e => { this.layers.date.setAttribute('transform', 'translate(0,'+ e.currentTarget.scrollTop +')'); }); //STICKY (added)
@PriyaBihani is that what you need?Let me know.
It‘s effect,thanks.
Duplicate of #115.