Hi,
a background image has a fixed with of 44px, so in order to have a time scale and a background grid aligned correctly you need to pick hour height that is multiple of background image size
e.g. docs.dhtmlx.com/scheduler/snippet/6e3a9d71
Get a guaranteed answer from DHTMLX technical support team
under the most suitable support plan