Problem/Motivation

The first all day cell at week view is missing. The result is a shift to left for multi-day events.

Steps to reproduce

  1. Create a view with calendar type week.
  2. Create a multi-day event.
  3. Go to view.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork calendar-3432817

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rauch created an issue. See original summary.

rauch’s picture

It seems that the problem is partly caused by this patch: https://www.drupal.org/project/calendar/issues/3255924#comment-15041499

rauch’s picture

StatusFileSize
new8.78 KB

rauch’s picture

To solve this on my site, I customized the patch from here: https://www.drupal.org/project/calendar/issues/3255924#comment-15041499
Lines: 731, 740

And created an issue fork here.

rauch’s picture

joelpittet’s picture

Version: 8.x-1.0-beta1 » 8.x-1.x-dev

Moving to dev branch as that is where code is fixed.

mortona2k made their first commit to this issue’s fork.

mortona2k’s picture

Status: Active » Needs review
StatusFileSize
new36.91 KB

I merged the latest from dev into the MR.

There's was not much left, just removing a float? This change is still here and we'll need to decide whether to keep it.

I modified the template condition for printing that first cell. Looks like loop.index was always 1 for some reason? I used i instead.

Needs testing for single and multi day displays.

Here's how it looks now:

Calendar fix missing table cell