Skip to content

Horizontal event alignment #886

@sandorvasas

Description

@sandorvasas

Do you want to request a feature or report a bug?

bug

What's the current behavior?

See screenshot: appointment indented further after the middle, 15 min appointment.
rbc_bug

Expected behavior:

The two events in the middle should be aligned horizontally to start at the same x position.

Suggested fix:

DayEventLayout.js

function onSameRow(a,b) {
  return (
    // Occupies the same start slot.
    (Math.abs(b.start - a.start) < 15) ||
    // A's start slot overlaps with b's end slot.
    (b.start > a.start && b.start < a.end)
  )
}

At the moment a,b events in the second part of the condition are swapped, and the first part, the difference is set to 30 mins. Should I create a PR?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions