gantt icon indicating copy to clipboard operation
gantt copied to clipboard

fixed grid Header when rolling

Open piapple opened this issue 5 years ago • 8 comments

fixed grid Header when rolling

piapple avatar Apr 28 '19 02:04 piapple

For now, I have extended the Gantt class and implemented the changes from this commit: https://github.com/frappe/gantt/pull/100/commits/8b94aa97fdec373ac09d0ae6912e948f8fe9d0a1

jcjobin avatar May 03 '19 18:05 jcjobin

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

Blackening999 avatar Apr 20 '20 14:04 Blackening999

Was also wondering if anyones converted the changes from 8b94aa9 into something that works. Copying over the code seems to result in issues.

alexscott64 avatar Jan 29 '21 01:01 alexscott64

Here's a copy paste solution for those who still need it. https://github.com/medmiskini/gantt/commit/531c5e178449e2a247e5fd5598dc272f7b71cdef

medmiskini avatar Apr 07 '21 12:04 medmiskini

Here's a copy paste solution for those who still need it. medmiskini@531c5e1

thank you so much it works for me!!

SaraBoutej avatar Apr 07 '21 20:04 SaraBoutej

Here's a copy paste solution for those who still need it. medmiskini@531c5e1

The code is changed.

PriyaBihani avatar Sep 15 '21 09:09 PriyaBihani

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.

hammeronthenet avatar Oct 13 '21 13:10 hammeronthenet

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.

image

Jveen-D avatar Jan 11 '23 03:01 Jveen-D

Duplicate of #115.

safwansamsudeen avatar Apr 05 '24 11:04 safwansamsudeen