Skip to content

Commit

Permalink
Merge pull request #166 from vadymshymko/fix-initial-position
Browse files Browse the repository at this point in the history
Fix initial render inner width
  • Loading branch information
vadymshymko authored Jun 6, 2023
2 parents dd6e59f + 500854f commit c3f460a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-simply-carousel",
"version": "9.0.1",
"version": "9.0.2",
"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",
"files": [
"dist/"
Expand Down
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ function ReactSimplyCarousel({
padding: '0',
overflow: 'hidden',
maxWidth: innerMaxWidth ? `${innerMaxWidth}px` : undefined,
flex: !innerMaxWidth ? `1 0` : undefined,
flex: !innerMaxWidth ? `1 0 auto` : undefined,
}}
ref={innerRef}
>
Expand Down

0 comments on commit c3f460a

Please sign in to comment.