TimelineYear does not set appointment height or add spacing

I'm trying to style my appointments in TimelineYear similar to the other timelines. But I get strange results.

- There is no space between appointments

- The height is not set according to styling


Timeline month: a few pixels of space anad two lines visible - as expected.

Image_4489_1717016480724

TimelineYear (vertical): no space and only one line visible - not as expected

Image_7463_1717016573890


I used this sample https://ej2.syncfusion.com/demos/#/material/schedule/timeline-resource-grouping.html and just added a TimelineYear, orientation: vertical


1 Reply 1 reply marked as answer

AK Ashokkumar Karuppasamy Syncfusion Team May 31, 2024 01:20 PM UTC

Hi Aske Holst,

Q1)There is no space between appointments

In this timeline year view, the event width is fully occupied in the cells. We suggest customizing the width and overriding the styles to meet your requirements. Please refer to the code below.

  <style>

            .year-view.e-schedule .e-timeline-year-view .e-resource-column-table,

            .year-view.e-schedule .e-timeline-year-view .e-resource-left-td {

                width120px;

            }

 

            .year-view.e-schedule .e-timeline-year-view .e-appointment {

              width90px !important;

              margin0 5px 0 5px

              height60px 

            }

 

            .col-lg-2.property-section .property-panel-table td {

                padding-bottom1rem;

            }

        </style>

 


Q2)The height is not set according to styling;

We have checked on our end and encountered no issues. We have attached a sample for your reference below. Please try it and let us know if you need any further assistance. If you still face issues, please share the details of the issues replicating in our shared samples.

  <style>

            .year-view.e-schedule .e-timeline-year-view .e-resource-column-table,

            .year-view.e-schedule .e-timeline-year-view .e-resource-left-td {

                width120px;

            }

 

            .year-view.e-schedule .e-timeline-year-view .e-appointment {

              width90px !important;

              margin0 5px 0 5px

              height60px 

            }

 

            .col-lg-2.property-section .property-panel-table td {

                padding-bottom1rem;

            }

        </style>

Sample: https://stackblitz.com/edit/pw9bfu-tllzzq?file=index.ts,index.html



Furthermore, if there is a possibility that we misunderstood your requirement, we would greatly appreciate it if you could provide us with further information about your scenario. This will help us align our understanding with your expectations and provide you with the best possible assistance.


Marked as answer
Loader.
Up arrow icon