Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
fix: 1px misalignment (jquense#2367)
Browse files Browse the repository at this point in the history
Correct slight misalignment between the `TimeGridHeader` and the scrollbar
  • Loading branch information
skv-headless authored Feb 15, 2023
1 parent 85a4de8 commit 7479b4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/TimeGridHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class TimeGridHeader extends React.Component {
<button
type="button"
className="rbc-button-link"
onClick={e => this.handleHeaderClick(date, drilldownView, e)}
onClick={(e) => this.handleHeaderClick(date, drilldownView, e)}
>
{header}
</button>
Expand Down Expand Up @@ -129,7 +129,7 @@ class TimeGridHeader extends React.Component {

let style = {}
if (isOverflowing) {
style[rtl ? 'marginLeft' : 'marginRight'] = `${scrollbarSize()}px`
style[rtl ? 'marginLeft' : 'marginRight'] = `${scrollbarSize() - 1}px`
}

const groupedEvents = resources.groupEvents(events)
Expand Down

0 comments on commit 7479b4d

Please sign in to comment.