@difizen/libro-virtualized 0.1.3 → 0.1.5

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 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 + 12; // 上padding 为12
368
+ var scrollTop = offset + (lineIndex - 1) * 20 - 12; // 上padding 为12
369
369
 
370
370
  this.scrollToPosition({
371
371
  scrollTop: scrollTop
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@difizen/libro-virtualized",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "libro",
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 + 12; // 上padding 为12
621
+ const scrollTop = offset + (lineIndex - 1) * 20 - 12; // 上padding 为12
622
622
 
623
623
  this.scrollToPosition({ scrollTop });
624
624
  }