virtua 0.46.4 → 0.46.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1276,7 +1276,7 @@ const ListItem = (props) => {
1276
1276
  [isHorizontal ? "height" : "width"]: "100%",
1277
1277
  [isHorizontal ? "top" : "left"]: "0px",
1278
1278
  [isHorizontal ? (isRTLDocument() ? "right" : "left") : "top"]: props._offset + "px",
1279
- visibility: props._hide ? "hidden" : "visible",
1279
+ visibility: props._hide ? "hidden" : undefined,
1280
1280
  };
1281
1281
  if (isHorizontal) {
1282
1282
  style.display = "inline-flex";
@@ -1416,7 +1416,7 @@ const Virtualizer = (props) => {
1416
1416
  return (<ListItem _as={props.item} _index={index()} _resizer={resizer.$observeItem} _offset={offset()} _hide={hide()} _children={children()} _isHorizontal={horizontal}/>);
1417
1417
  };
1418
1418
  return (<Dynamic component={props.as} ref={containerRef} style={{
1419
- contain: "size paint style", // https://github.com/inokawa/virtua/pull/775
1419
+ contain: "size style", // https://github.com/inokawa/virtua/pull/775 https://github.com/inokawa/virtua/issues/800
1420
1420
  "overflow-anchor": "none", // opt out browser's scroll anchoring because it will conflict to scroll anchoring of virtualizer
1421
1421
  flex: "none", // flex style can break layout
1422
1422
  position: "relative",
@@ -1544,7 +1544,7 @@ const WindowVirtualizer = (props) => {
1544
1544
  return items;
1545
1545
  });
1546
1546
  return (<div ref={containerRef} style={{
1547
- contain: "size paint style", // https://github.com/inokawa/virtua/pull/775
1547
+ contain: "size style", // https://github.com/inokawa/virtua/pull/775 https://github.com/inokawa/virtua/issues/800
1548
1548
  "overflow-anchor": "none", // opt out browser's scroll anchoring because it will conflict to scroll anchoring of virtualizer
1549
1549
  flex: "none", // flex style can break layout
1550
1550
  position: "relative",