@oncehub/ui-react 1.4.8 → 1.4.9
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.
package/dist/ui-react.es.js
CHANGED
|
@@ -3446,8 +3446,8 @@ const zl = tt.forwardRef(ql), xi = zl, ic = ({ children: e, selected: t, onSelec
|
|
|
3446
3446
|
const P = v?.current?.getBoundingClientRect(), q = x(), $ = s.current - F.bottom;
|
|
3447
3447
|
let C;
|
|
3448
3448
|
if (P) {
|
|
3449
|
-
const z = F.height, de = F.top, Z = P.height, k = Z
|
|
3450
|
-
|
|
3449
|
+
const z = F.height, de = F.top, Z = P.height, k = Z >= de + window.scrollY;
|
|
3450
|
+
Z >= de && (k || k && $ <= Z || q >= Z || $ >= Z) || de >= Z && $ >= Z ? C = F.y + z : C = F.y - Z, h({
|
|
3451
3451
|
left: F.left,
|
|
3452
3452
|
top: C ?? F.top
|
|
3453
3453
|
});
|