Bug: Scheduler style props can not change height

1 Answer 78 Views
Scheduler
Yiheng
Top achievements
Rank 2
Iron
Iron
Iron
Yiheng asked on 11 Feb 2022, 04:29 PM

https://www.telerik.com/kendo-react-ui/components/scheduler/api/SchedulerProps/#toc-style

    <Scheduler data={events} style={{
      borderColor: 'red', height: '100vh'
    }}>
      <AgendaView />
      <TimelineView />
      <DayView />
      <WorkWeekView
        title="Work Week"
        workWeekStart={Day.Monday}
        workWeekEnd={Day.Friday}
      />
      <WeekView title="Full Week" />
      <MonthView />
    </Scheduler>

The height is always 600px

1 Answer, 1 is accepted

Sort by
0
Yiheng
Top achievements
Rank 2
Iron
Iron
Iron
answered on 11 Feb 2022, 04:40 PM

https://www.telerik.com/kendo-react-ui/components/scheduler/api/SchedulerProps/#toc-height

it turns out that Scheduler is using an height prop to toggle the height, rather than style prop

Stefan
Telerik team
commented on 14 Feb 2022, 07:14 AM

Hello, 

Indeed, for some components, we have created separate height and width properties as not all components had the style property.

Now, this causes inconsistencies and we are discussing how to address them in the future.

Tags
Scheduler
Asked by
Yiheng
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Yiheng
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or