react-smart-scroller
Advanced tools
Comparing version 1.0.13 to 1.0.14
@@ -286,2 +286,7 @@ import _objectSpread from "@babel/runtime/helpers/objectSpread"; | ||
const height = cols ? `calc(100% / ${cols})` : 'auto'; | ||
const extendedChild = React.cloneElement(children[index], { | ||
style: _objectSpread({ | ||
display: 'flex' | ||
}, children[index].props.style) | ||
}); | ||
return React.createElement(ChildrenWrapper, { | ||
@@ -295,3 +300,3 @@ style: { | ||
} | ||
}, child); | ||
}, extendedChild); | ||
}); | ||
@@ -298,0 +303,0 @@ } |
{ | ||
"name": "react-smart-scroller", | ||
"version": "1.0.13", | ||
"version": "1.0.14", | ||
"description": "React-smart-scroller is a library that allows you to create highly customizable horizontal or vertical scroller in easy way. You can modify track styles or pass your own thumb (own component)", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -22,2 +22,3 @@ <p align="center"> | ||
- Spacing between columns | ||
- Draggable content | ||
- Well typed (Typescript) | ||
@@ -43,3 +44,3 @@ | ||
vertical | boolean | Default: `false`.<br> Defines direction of scrollbar - horizontal by default.<br>If height of ReactSmartScroller is not defined it will automatically resize to 100% and scroll will not be visible. | ||
draggable | boolean | Default: `false`.<br> Allows to drag content, | ||
draggable | boolean | Default: `false`.<br> Allows to scroll by dragging content. | ||
@@ -46,0 +47,0 @@ ## Usage |
Sorry, the diff of this file is not supported yet
12300103
4174
190