Feature : customize menu_offset (and not menu_width)

Hi,

It is very convenient to be able to keep an area on left side of events to by able to click on same time slot.
Thanks to use_select_menu_space that is easy to do.

However, this “single” option create two consequences :

  • set to false, it let events taking all the places of the scale holder but boes not permit to create new event side by side easily.
  • set to true, it let an empty space on the left side of the event, of the width of the menu, but this width is sometimes too large to display long text events.

The width of the select menu is 25px by default (it’s great !), but with use_select_menu_space set to true it is ‘25px’ of empty space too.

I think a good solution would be to have two customizable widths, like :

  • scheduler.xy.menu_width for the width of the menu
  • scheduler.xy.menu_offset for the place between event and scale holder border

For example, with customization it would be possible to let the default width of first one (set to “25px”) and to override second (set by default to “25px” for backwards compatibility) by setting “10px” so that the scheduler get both an empty space to add events and a wider event area.

In this case, if use_select_menu_space is set to false, menu_offset will be forced 0px when rendering events without taking into the set value, and if set to true the (default or custom) menu_offset will be used.

What do you think about that ?

If you add such option, it would be also great if we can decide where the gap is; left or right.

Because it looks really strange if you add a second event to the scheduler for the same timeslot by clicking left of an existing event and then getting one at the right side of this event.