Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: time grid header component margin is not recalculated when the s… #2411

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

7assenTlili
Copy link

Fix for issue #2402

Issue:
https://www.loom.com/share/428411cb7d0144aabe921946c311acd0
When the scroll settings is changed on macOS, the margin calculation for TimeGridHeader is not recalculated which create a misalignment between the header and the content of the TimeGrid.

Solution:
Add an observer for the content, when the scroll bar is hidden/displayed we calculate the scroll bar width as a state in the TimeGrid component and move it as a prop to TimeGridHeader.

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.

None yet

1 participant