Skip to content

Commit c3f460a

Browse files
authored
Merge pull request #166 from vadymshymko/fix-initial-position
Fix initial render inner width
2 parents dd6e59f + 500854f commit c3f460a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-simply-carousel",
3-
"version": "9.0.1",
3+
"version": "9.0.2",
44
"description": "A simple, lightweight, fully controlled isomorphic (with SSR support) React.js carousel component. Touch enabled and responsive. With support for autoplay and infinity options. Fully customizable",
55
"files": [
66
"dist/"

src/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -957,7 +957,7 @@ function ReactSimplyCarousel({
957957
padding: '0',
958958
overflow: 'hidden',
959959
maxWidth: innerMaxWidth ? `${innerMaxWidth}px` : undefined,
960-
flex: !innerMaxWidth ? `1 0` : undefined,
960+
flex: !innerMaxWidth ? `1 0 auto` : undefined,
961961
}}
962962
ref={innerRef}
963963
>

0 commit comments

Comments
 (0)