Skip to content

Commit

Permalink
Fix background event width calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
kamildebicki committed Jan 29, 2021
1 parent 0df77cb commit 559663e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/TimeGridEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
}
: {
Expand Down

0 comments on commit 559663e

Please sign in to comment.