Skip to content

Commit 4291dff

Browse files
committed
Fix sticky offset calculation for frozen columns
1 parent 9d0a8b0 commit 4291dff

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/dashboard/Data/Browser/BrowserTable.react.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,16 @@ export default class BrowserTable extends React.Component {
121121

122122
let stickyLefts = [];
123123
let handleLefts = [];
124-
if (typeof this.props.freezeIndex === 'number' && this.props.freezeIndex >= 0) {
124+
if (
125+
typeof this.props.freezeIndex === 'number' &&
126+
this.props.freezeIndex >= 0
127+
) {
125128
let left = 30;
126129
headers.forEach((h, i) => {
127130
stickyLefts[i] = left;
128131
handleLefts[i] = left + h.width;
129132
if (h.visible) {
130-
left += h.width + 8;
133+
left += h.width;
131134
}
132135
});
133136
}

0 commit comments

Comments
 (0)