Skip to content

Commit

Permalink
docs: fix dynamic example
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerlinsley committed Jan 20, 2022
1 parent df4723c commit bc21ad1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/dynamic/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function RowVirtualizerDynamic({ rows }) {
top: 0,
left: 0,
width: "100%",
height: `${virtualRow.size}px`,
height: `${rows[virtualRow.index]}px`,
transform: `translateY(${virtualRow.start}px)`
}}
>
Expand Down Expand Up @@ -127,7 +127,7 @@ function ColumnVirtualizerDynamic({ columns }) {
top: 0,
left: 0,
height: "100%",
width: `${virtualColumn.size}px`,
width: `${columns[virtualColumn.index]}px`,
transform: `translateX(${virtualColumn.start}px)`
}}
>
Expand Down Expand Up @@ -206,8 +206,8 @@ function GridVirtualizerDynamic({ rows, columns }) {
position: "absolute",
top: 0,
left: 0,
width: `${virtualColumn.size}px`,
height: `${virtualRow.size}px`,
width: `${columns[virtualColumn.index]}px`,
height: `${rows[virtualRow.index]}px`,
transform: `translateX(${virtualColumn.start}px) translateY(${virtualRow.start}px)`
}}
>
Expand Down

1 comment on commit bc21ad1

@vercel
Copy link

@vercel vercel bot commented on bc21ad1 Jan 20, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.