jQuery Timeline Equal Row Heights

By default the height of the timeline tracks will adjust to accommodate the events inside. However, in some cases it is desired that the track heights remain equal, and distribute the overlapping events evenly inside the track. This can be achieved by using the rowHeight: 'equal' property under the timeline configuration of the view option.

The height of the timeline tracks have a minimum height of 52px. This means that regardless of the available vertical space the height of the timeline rows never shrinks below that number.

If there is more vertical space available the rows automatically grow to fill it. Eg. if the parent container is 250px and there are only two resources, their height will grow to fill the full height minus the calendar header.

This can however be overridden with a custom CSS rule:

.md-timeline-height .mbsc-timeline-resource,
            .md-timeline-height .mbsc-timeline-row {
            min-height: 120px;
            }
Download and try example

Demo

Loading the live demo

Preview in full screen

Keep all resources the same height on the Timeline — overlapping events distribute evenly within each row - CSS override for minimum height.

Code

mobiscroll.setOptions({
  locale:  ,
  theme: ' ',
  themeVariant: ' '
});

$(function () {
  $('#demo-resource-height')
    .mobiscroll()
    .eventcalendar({
      clickToCreate:  ,
      dragToCreate:  ,
      dragToMove:  ,
      dragToResize:  ,
      eventDelete:  ,
      view: {
        timeline: {
          rowHeight: 'equal',
          type: 'week',
          timeCellStep: 240,
          timeLabelStep: 240,
        },
      },
      data: [
        {
          start: '2026-11-13T04:00',
          end: '2026-11-13T22:00',
          title: 'Event1',
          resource: 1,
        },
        {
          start: '2026-11-13T05:00',
          end: '2026-11-13T18:00',
          title: 'Event2',
          resource: 1,
        },
        {
          start: '2026-11-13T08:00',
          end: '2026-11-13T23:59',
          title: 'Event3',
          resource: 1,
        },
        {
          start: '2026-11-14T05:00',
          end: '2026-11-14T20:00',
          title: 'Event4',
          resource: 2,
        },
        {
          start: '2026-11-14T08:00',
          end: '2026-11-14T22:00',
          title: 'Event5',
          resource: 2,
        },
        {
          start: '2026-11-15T02:00',
          end: '2026-11-15T16:00',
          title: 'Event6',
          resource: 4,
        },
        {
          start: '2026-11-15T04:00',
          end: '2026-11-15T20:00',
          title: 'Event7',
          resource: 4,
        },
        {
          start: '2026-11-15T06:00',
          end: '2026-11-15T17:00',
          title: 'Event8',
          resource: 4,
        },
        {
          start: '2026-11-15T09:00',
          end: '2026-11-15T23:00',
          title: 'Event9',
          resource: 4,
        },
      ],
      resources: [
        {
          id: 1,
          name: 'Flatiron Room',
          color: '#fdf500',
        },
        {
          id: 2,
          name: 'The Capital City',
          color: '#ff0101',
        },
        {
          id: 3,
          name: 'Heroes Square',
          color: '#01adff',
        },
        {
          id: 4,
          name: 'Thunderdome',
          color: '#239a21',
        },
        {
          id: 5,
          name: 'King’s Landing',
          color: '#ff4600',
        },
      ],
    });
});
  

Duplicate Session

You have signed in on a different machine. To keep everything in sync, you have been signed out of this session.

If you need to invite team members, manage seats and accounts you can do it from the licenses page.

Duplicate Session

We noticed you are logged in on a different machine and have closed your old session.

If you need to invite team members, manage seats and accounts you can do it from the licenses page.