@acrool/react-picker 0.0.8 → 0.0.9-alpha.0

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.
@@ -5538,10 +5538,11 @@ const Zs = ({
5538
5538
  const P = p.bottom, T = p.top, x = p.left, y = p.right, v = window.pageYOffset || document.documentElement.scrollTop, S = window.pageXOffset || document.documentElement.scrollLeft, R = window.innerWidth || document.documentElement.clientWidth, k = window.innerHeight || document.documentElement.clientHeight, W = 15, w = P + f < k, N = T - (f + W) > 0;
5539
5539
  o === st.bottom ? !w && N && (o = st.top) : o === st.top && (w && !N || !w && !N) && (o = st.bottom);
5540
5540
  const U = x + d < R, Z = y - (d + W) > 0;
5541
- r === pt.left ? !U && Z && (r = pt.right) : r === pt.right && (U && !Z || !U && !Z) && (r = pt.left), s.setVertical(o), i.current.style.top = o === st.bottom ? `${P + v}px` : `${P + v - (f + g)}px`, i.current.style.left = r === pt.left ? `${x + S}px` : `${y + S - d}px`, i.current.style.transformOrigin = o === st.bottom ? "top" : "bottom", i.current.style.display = "block", requestAnimationFrame(a);
5541
+ r === pt.left ? !U && Z && (r = pt.right) : r === pt.right && (U && !Z || !U && !Z) && (r = pt.left), s.setVertical(o), i.current.style.top = o === st.bottom ? `${P + v}px` : `${P + v - (f + g)}px`, i.current.style.left = r === pt.left ? `${x + S}px` : `${y + S - d}px`, i.current.style.transformOrigin = o === st.bottom ? "top" : "bottom", requestAnimationFrame(a);
5542
5542
  }
5543
5543
  };
5544
5544
  if (e.current && i.current) {
5545
+ i.current.style.display = "block";
5545
5546
  const l = new ResizeObserver(a);
5546
5547
  return l.observe(i.current), () => {
5547
5548
  l.disconnect();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acrool/react-picker",
3
- "version": "0.0.8",
3
+ "version": "0.0.9-alpha.0",
4
4
  "description": "This is a react method to quickly combine buttons with Picker",
5
5
  "keywords": [
6
6
  "acrool",