Skip to content

Commit 7479b4d

Browse files
authored
fix: 1px misalignment (jquense#2367)
Correct slight misalignment between the `TimeGridHeader` and the scrollbar
1 parent 85a4de8 commit 7479b4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/TimeGridHeader.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class TimeGridHeader extends React.Component {
4949
<button
5050
type="button"
5151
className="rbc-button-link"
52-
onClick={e => this.handleHeaderClick(date, drilldownView, e)}
52+
onClick={(e) => this.handleHeaderClick(date, drilldownView, e)}
5353
>
5454
{header}
5555
</button>
@@ -129,7 +129,7 @@ class TimeGridHeader extends React.Component {
129129

130130
let style = {}
131131
if (isOverflowing) {
132-
style[rtl ? 'marginLeft' : 'marginRight'] = `${scrollbarSize()}px`
132+
style[rtl ? 'marginLeft' : 'marginRight'] = `${scrollbarSize() - 1}px`
133133
}
134134

135135
const groupedEvents = resources.groupEvents(events)

0 commit comments

Comments
 (0)