• Resolved Juha Mets?kallas

    (@juhametsakallas)


    Steps to reproduce

    1. Create a public calendar with two events for the same day.
    2. Use the following shortcode:
      [pgc public="true" filter="" eventpopup="true" eventlink="false" eventdescription="true" eventlocation="true" eventattendees="false" eventattachments="false" eventcreator="false" eventcalendarname="false" hidepassed="false" hidefuture="false" default_View="dayGridWeek" week_numbers="false"? header-right="" calendarids="[email protected]"]
    3. Take a look how the day with two events is displayed.
    4. Change to week_numbers="true"
    5. Save, refresh and take a look again: the later event is not shown, neither in the grid nor in the pop up

    Or have I misconfigured something?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author michielve

    (@michielve)

    Hi,
    I just tested this and I see 2 events in both situations.
    Maybe you can send a link so I can have a look?
    Regards

    Thread Starter Juha Mets?kallas

    (@juhametsakallas)

    I created a test page. They are connected to the same calendar with two events for today, ie. 2020-06-15.

    Plugin Author michielve

    (@michielve)

    Now I see: this is partly caused by the min-height that is set on the events. If you remove it, you’ll see 2 items as well. But even then the second one is not fully visible. I think this is caused by the theme you are using. If you look at my test page (https://blog.michielvaneerd.nl/calendar-test/) you see all events are displayed correctly (first with and second without week numbers).

    If I add the following CSS to your theme I can fix this for this specific calendar, but I’m not sure this can cause issues for other displays of this calendar:

    .fc-row.fc-rigid .fc-content-skeleton {
    position: relative !important;
    }

    Thread Starter Juha Mets?kallas

    (@juhametsakallas)

    You’re right about how it effects other displays. Currently I have only two displays of the same calendar, but hope to get a couple of more calendars.

    There is compact view, where the space is at premium, and a wider view. What I ended up doing, was the following CSS adjustments:

    /*
    * make space for multiple events in a day
    */
    .fc-row.fc-rigid .fc-content-skeleton 
    {
    	position: relative !important;
    }
    /*
    * make space for events within the cells
    */
    table:not(.fc-event-container) td
    {
    	padding: 0.2em;
    }
    /*
    * make the event stand out better
    */
    .fc-day-grid-event .fc-content
    {
    	min-height: 2em;
    	padding-top: 0.2em;
    }

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Week number display bug?’ is closed to new replies.