From 559663e22701fcb0de9b7964254dc64be2d5a3f0 Mon Sep 17 00:00:00 2001 From: kamildebicki Date: Fri, 29 Jan 2021 12:49:41 +0100 Subject: [PATCH] Fix background event width calculation --- src/TimeGridEvent.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TimeGridEvent.js b/src/TimeGridEvent.js index 3e59feb7d..eaf7f9adf 100644 --- a/src/TimeGridEvent.js +++ b/src/TimeGridEvent.js @@ -46,7 +46,8 @@ function TimeGridEvent(props) { ...userProps.style, top: stringifyPercent(top), height: stringifyPercent(height), - width: `calc(${width}% + 10px)`, + // Adding 10px to take events container right margin into account + width: `calc(${width} + 10px)`, [rtl ? 'right' : 'left']: stringifyPercent(Math.max(0, xOffset)), } : {