Skip to content

Commit 6f95602

Browse files
[fix] ISSUE-56 Adds box-sizing CSS rule
1 parent daf18f3 commit 6f95602

File tree

6 files changed

+14
-12
lines changed

6 files changed

+14
-12
lines changed

demo/dist/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/dist/react.js

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/dist/virtualList.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/utils/defaultMapVirtualToProps.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"use strict";
1+
'use strict';
22

33
Object.defineProperty(exports, "__esModule", {
44
value: true
@@ -20,7 +20,8 @@ var defaultMapToVirtualProps = function defaultMapToVirtualProps(_ref, _ref2) {
2020
items: visibleItems,
2121
style: {
2222
height: height,
23-
paddingTop: paddingTop
23+
paddingTop: paddingTop,
24+
boxSizing: 'border-box'
2425
}
2526
}
2627
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-virtual-list",
3-
"version": "2.2.1",
3+
"version": "2.2.2",
44
"description": "Super simple virtualized list React higher-order component",
55
"main": "lib/VirtualList.js",
66
"directories": {

src/utils/defaultMapVirtualToProps.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const defaultMapToVirtualProps = ({
1717
style: {
1818
height,
1919
paddingTop,
20+
boxSizing: 'border-box',
2021
},
2122
}
2223
};

0 commit comments

Comments
 (0)