@difizen/libro-virtualized 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/grid/grid.js +1 -1
- package/package.json +1 -1
- package/src/grid/grid.tsx +1 -1
package/es/grid/grid.js
CHANGED
|
@@ -365,7 +365,7 @@ var Grid = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
365
365
|
lineIndex = _ref5.lineIndex;
|
|
366
366
|
var _this$state$instanceP = this.state.instanceProps.rowSizeAndPositionManager.getSizeAndPositionOfCell(cellIndex),
|
|
367
367
|
offset = _this$state$instanceP.offset;
|
|
368
|
-
var scrollTop = offset + (lineIndex - 1) * 20
|
|
368
|
+
var scrollTop = offset + (lineIndex - 1) * 20 - 12; // 上padding 为12
|
|
369
369
|
|
|
370
370
|
this.scrollToPosition({
|
|
371
371
|
scrollTop: scrollTop
|
package/package.json
CHANGED
package/src/grid/grid.tsx
CHANGED
|
@@ -618,7 +618,7 @@ class Grid extends React.PureComponent<Props, State> {
|
|
|
618
618
|
cellIndex,
|
|
619
619
|
);
|
|
620
620
|
|
|
621
|
-
const scrollTop = offset + (lineIndex - 1) * 20
|
|
621
|
+
const scrollTop = offset + (lineIndex - 1) * 20 - 12; // 上padding 为12
|
|
622
622
|
|
|
623
623
|
this.scrollToPosition({ scrollTop });
|
|
624
624
|
}
|