x-ui-design 0.7.46 → 0.7.48
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/index.esm.js
CHANGED
|
@@ -2845,7 +2845,7 @@ const TimePicker = ({
|
|
|
2845
2845
|
return {};
|
|
2846
2846
|
}
|
|
2847
2847
|
const scrollableParents = getScrollParents(inputRef.current)[1];
|
|
2848
|
-
const offsetHeight = getPopupContainer ? window.innerHeight : scrollableParents?.offsetHeight
|
|
2848
|
+
const offsetHeight = getPopupContainer ? window.innerHeight : scrollableParents?.offsetHeight;
|
|
2849
2849
|
const shouldShowAbove = offsetHeight - (inputRef.current?.getBoundingClientRect().bottom || 0) < 230;
|
|
2850
2850
|
const shouldShowBelow = inputRef.current?.getBoundingClientRect().top < 230;
|
|
2851
2851
|
if (open && !shouldShowBelow && !shouldShowAbove) {
|