Skip to content

Releases: inokawa/virtua

0.48.2

01 Dec 04:45

Choose a tag to compare

What's Changed

  • Revert flex-direction: column-reverse and writing-mode support by @inokawa in #830

Full Changelog: 0.48.1...0.48.2

0.48.1

30 Nov 15:37

Choose a tag to compare

What's Changed

  • Fix incorrect negative overflow detection especially in Windows by @inokawa in #827

Full Changelog: 0.48.0...0.48.1

0.48.0

30 Nov 11:31

Choose a tag to compare

BREAKING CHANGES

Removed reverse prop from VList for React (#774)

// before
<VList reverse>{children}</VList>;

// after
// Recommended markup to align items to the bottom
<div
  style={{
    overflowY: "auto",
    height: "100%",
    display: "flex",
    flexDirection: "column",
  }}
>
  <div style={{ flexGrow: 1 }} />
  <Virtualizer>{children}</Virtualizer>
</div>;
// or if you want the exactly same markup as reverse prop, use this
const scrollRef = useRef(null);
<div
  ref={scrollRef}
  style={{
    display: "block",
    overflowY: "auto",
    contain: "strict",
    width: "100%",
    height: "100%",
  }}
>
  <div
    style={{
      display: "flex",
      flexDirection: "column",
      justifyContent: "flex-end",
      minHeight: "100%",
      overflow: "clip",
    }}
  >
    <Virtualizer scrollRef={scrollRef}>{children}</Virtualizer>
  </div>
</div>;
// ...or we can use "column-reverse" to invert scroll direction in 0.48.0. May fit depending on your usecase
<div
  style={{
    height: "100%",
    overflowY: "auto",
    display: "flex",
    flexDirection: "column-reverse",
  }}
>
  <Virtualizer>{children}</Virtualizer>
</div>;

What's Changed

New Contributors

Full Changelog: 0.47.2...0.48.0

0.47.2

26 Nov 17:17

Choose a tag to compare

What's Changed

  • Fix jump compensation is not working properly in RTL by @inokawa in #822

Full Changelog: 0.47.1...0.47.2

0.47.1

21 Nov 12:54

Choose a tag to compare

What's Changed

  • Fix crash when removing all items causes viewport to collapse to 0 by @gne in #818

New Contributors

  • @gne made their first contribution in #818

Full Changelog: 0.47.0...0.47.1

0.47.0

16 Nov 05:43

Choose a tag to compare

BREAKING CHANGES

  • Merged findStartIndex/findEndIndex into findItemIndex for more control
// before
handle.findStartIndex();
// after
handle.findItemIndex(handle.scrollOffset);

// before
handle.findEndIndex();
// after
handle.findItemIndex(handle.scrollOffset + handle.viewportSize);
  • Refactored some methods and props of experimental_VGrid #777

What's Changed

Full Changelog: 0.46.7...0.47.0

0.46.7

09 Nov 06:19

Choose a tag to compare

What's Changed

  • Implement scroll restoration feature for Vue/Svelte by @inokawa in #812

Full Changelog: 0.46.6...0.46.7

0.46.6

04 Nov 04:56

Choose a tag to compare

What's Changed

  • Remove unnecessary visibility: visible style from items by @inokawa in #807

Full Changelog: 0.46.5...0.46.6

0.46.5

01 Nov 05:31

Choose a tag to compare

What's Changed

  • Reduce contain style to support overflowed items by @inokawa in #805

Full Changelog: 0.46.4...0.46.5

0.46.4

28 Oct 10:57

Choose a tag to compare

What's Changed

Full Changelog: 0.46.3...0.46.4