In scheduler, day or week view, how to reduce the hour height in order to view full range (0h-23h)?


#1

Hi,
I want to view the full hour range (from 0h to 23h) in the day or week view.
I already tried to reduce the scheduler.config.hour_size_px (ie 22px) but it doesn’t work. Only the hour scale is reduced, not the hour grid in the day columns.

In a global way, I need to reduce the global size of the scheduler for small screen with poor resolution but with a maximum of range to view !

Thanks


#2

Hello @oloysance,

I want to view the full hour range (from 0h to 23h) in the day or week view.

By default, the scheduler shows the exact time range.

I already tried to reduce the scheduler.config.hour_size_px (ie 22px) but it doesn’t work. Only the hour scale is reduced, not the hour grid in the day columns.

It’s correct behavior (even if it’s a little bit confusing).
It occurs because the background is set by the image, and the config doesn’t affect it. In order to change the background according to the new config, you should change it by the dhx_scale_holder class, as meant in the doc:
https://docs.dhtmlx.com/scheduler/sizing.html#howtochangethebackgroundaccordingtothesetscale

Kind regards,