Skip to content

fix: month/week view events and grid misaligned#2784

Open
smilewilson1999 wants to merge 1 commit into
bigcalendar:masterfrom
smilewilson1999:master
Open

fix: month/week view events and grid misaligned#2784
smilewilson1999 wants to merge 1 commit into
bigcalendar:masterfrom
smilewilson1999:master

Conversation

@smilewilson1999
Copy link
Copy Markdown

Reason

  1. .rbc-abs-full sets right: 0, which makes the background fill the entire container.
  2. .rbc-row-bg overrides it with right: 1px, shrinking the background by 1px from the right.
  3. This causes a width mismatch between the background layer and the header layer.

Related Issue

Fixes #2783

Changes

  • Styles (Remove right: 1px; from .rbc-row-bg)

Testing

  • Local testing completed
  • Unit tests pass
  • Manual testing done

Sandbox Demo

Screenshots/Video

Before

Dia 2025-11-03 22 54 30 Dia 2025-11-03 22 54 46

After

Dia 2025-11-03 22 55 11 Dia 2025-11-03 22 55 25

@smilewilson1999
Copy link
Copy Markdown
Author

smilewilson1999 commented Nov 4, 2025

@cutterbl @jquense Hi, sorry to ping you guys. Would you be able to review this PR?

I'm using react-big-calendar for our project and find this bug. Just a small fix, but I think it makes UI way better.

@vanquandang
Copy link
Copy Markdown

Hi @smilewilson1999, sorry to ping you. I have bumped into the same issue as yours and thanks to you I have managed to fix it at some point.

Have you managed to improve the solution for this small issue since then?
I'm using react-big-calendar with the resources prop. There can be up to 30 users (resources), and with each additional user the layout shifts slightly, making the width mismatch quite noticeable.

Screenshot 2026-03-04 103020

@smilewilson1999
Copy link
Copy Markdown
Author

@vanquandang I think it can also be fixed within src/sass/month.scss Try to add/remove some right/left css code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

month/week view events and grid misaligned

2 participants