jquery.timeline icon indicating copy to clipboard operation
jquery.timeline copied to clipboard

How to decrease width for weeks in ruler

Open Flemmingc opened this issue 4 years ago • 3 comments

I sometimes find that the width used for displaying weeks are much wider than necessary - causing the scrollbars and the whole view to be rather wide. Is there a way to limit the width for weeks and thereby make a less wide visualization/scrollbar? I know there is a minimum setting, but what about a maximum setting - or som rule for calculating the width? The example below would display a lot better if the weeks where much smaller. Timeline Week display

Flemmingc avatar Apr 22 '20 05:04 Flemmingc

Hi, that was a bug.

The grid width of one of the rulers depends on "minGridSize", which is the smallest unit of "scale" on the timeline. However, if the "scale" is "week", the width of the week is calculated as "minGridSize" x 7 (days). All ruler grid widths must be modified to comply with the scale value. It's my job so. The current urgent workaround is to set "minGridSize" to 1/7 of the width you want to specify if you want the width of the week to be any width when "scale" is set to "week".

Thank you,

ka215 avatar Apr 23 '20 07:04 ka215

Thank you for quick answer. I will try your given workaround.

Thank you!

Flemmingc avatar Apr 23 '20 08:04 Flemmingc

This bug has been fixed in version 2.1.2.

ka215 avatar Nov 13 '20 08:11 ka215