emanuelefricano93 / frxjs-Ngx-Timeline

NgxTimeline Angular Library
29 stars 10 forks source link

ChangeSideInGroup bug when adding new event #29

Closed HalilAkduman closed 9 months ago

HalilAkduman commented 9 months ago

Hey, My setting changeSideInGroup is set to NgxTimelineEventChangeSideInGroup.ALL. this is my initial events. events: NgxTimelineEvent[] = [ { description: '', id: uuidv4(), title: 'asd', timestamp: new Date('Tue Jan 25 2024 13:18:47 GMT+0300 (GMT+03:00)') }, { description: '', id: uuidv4(), title: 'asd', timestamp: new Date('Tue Jan 26 2024 13:18:47 GMT+0300 (GMT+03:00)') }, { description: '', id: uuidv4(), title: 'asd', timestamp: new Date('Tue Jan 30 2024 13:18:47 GMT+0300 (GMT+03:00)') } ];

When adding new event with this.events.push(event) the first event reveals the same side of last event. Ekran görüntüsü 2024-02-05 104031

Thank you for responding so quickly :)

emanuelefricano93 commented 9 months ago

Hello @HalilAkduman,

Let me take a look, are you using the version 17.0.2 right? An then I think I get it :) but seems you are creating a new group with Subat 2024 (sorry I did not write correctly :)) But as in the image you described you can see there is a green label that means you are creating a new group, so the first item added in this case is starting from Left in his group

HalilAkduman commented 9 months ago

Thank you for your response. I got it now :)

emanuelefricano93 commented 9 months ago

But you gave me an idea, I will change it a bit to add a new functionality to allow also the change despite the group :)

I have done the update in version 17.0.3, so you can choose all and will change the side also across groups

HalilAkduman commented 9 months ago

But you gave me an idea, I will change it a bit to add a new functionality to allow also the change despite the group :)

I have done the update in version 17.0.3, so you can choose all and will change the side also across groups

I'm using 17.0.3 and it works like a charm. Thank you :)