@fileverse-dev/fortune-react 1.0.2-mod-60 → 1.0.2-mod-61
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 +4 -4
- package/dist/index.js +4 -4
- package/dist/index.umd.js +329 -63
- package/dist/index.umd.min.js +8 -8
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -807,13 +807,13 @@ var FormulaSearch = function FormulaSearch(props) {
|
|
|
807
807
|
var calcuatePopUpPlacement = function calcuatePopUpPlacement() {
|
|
808
808
|
var _hintRef$current;
|
|
809
809
|
if (!(firstSelection === null || firstSelection === void 0 ? void 0 : firstSelection.top) || !firstSelection.height_move || !hintRef.current) return;
|
|
810
|
-
var hintHeight =
|
|
810
|
+
var hintHeight = 360;
|
|
811
811
|
var inputBottom = firstSelection.top + firstSelection.height_move;
|
|
812
812
|
var availableBelow = window.innerHeight - inputBottom;
|
|
813
813
|
var hintAbove = hintHeight > availableBelow;
|
|
814
814
|
var selectionHeight = (firstSelection === null || firstSelection === void 0 ? void 0 : firstSelection.height_move) || 0;
|
|
815
815
|
var divOffset = ((_hintRef$current = hintRef.current) === null || _hintRef$current === void 0 ? void 0 : _hintRef$current.offsetHeight) || 0;
|
|
816
|
-
setTop(hintAbove ? selectionHeight - (divOffset +
|
|
816
|
+
setTop(hintAbove ? selectionHeight - (divOffset + 30) : selectionHeight + 4);
|
|
817
817
|
};
|
|
818
818
|
useEffect(function () {
|
|
819
819
|
calcuatePopUpPlacement();
|
|
@@ -916,13 +916,13 @@ var FormulaHint = function FormulaHint(props) {
|
|
|
916
916
|
var calcuatePopUpPlacement = function calcuatePopUpPlacement() {
|
|
917
917
|
var _hintRef$current;
|
|
918
918
|
if (!(firstSelection === null || firstSelection === void 0 ? void 0 : firstSelection.top) || !firstSelection.height_move || !hintRef.current) return;
|
|
919
|
-
var hintHeight =
|
|
919
|
+
var hintHeight = 360;
|
|
920
920
|
var inputBottom = firstSelection.top + firstSelection.height_move;
|
|
921
921
|
var availableBelow = window.innerHeight - inputBottom;
|
|
922
922
|
var hintAbove = hintHeight > availableBelow;
|
|
923
923
|
var selectionHeight = (firstSelection === null || firstSelection === void 0 ? void 0 : firstSelection.height_move) || 0;
|
|
924
924
|
var divOffset = ((_hintRef$current = hintRef.current) === null || _hintRef$current === void 0 ? void 0 : _hintRef$current.offsetHeight) || 0;
|
|
925
|
-
setTop(hintAbove ? selectionHeight - (divOffset +
|
|
925
|
+
setTop(hintAbove ? selectionHeight - (divOffset + 30) : selectionHeight + 4);
|
|
926
926
|
};
|
|
927
927
|
useEffect(function () {
|
|
928
928
|
calcuatePopUpPlacement();
|
package/dist/index.js
CHANGED
|
@@ -819,13 +819,13 @@ var FormulaSearch = function FormulaSearch(props) {
|
|
|
819
819
|
var calcuatePopUpPlacement = function calcuatePopUpPlacement() {
|
|
820
820
|
var _hintRef$current;
|
|
821
821
|
if (!(firstSelection === null || firstSelection === void 0 ? void 0 : firstSelection.top) || !firstSelection.height_move || !hintRef.current) return;
|
|
822
|
-
var hintHeight =
|
|
822
|
+
var hintHeight = 360;
|
|
823
823
|
var inputBottom = firstSelection.top + firstSelection.height_move;
|
|
824
824
|
var availableBelow = window.innerHeight - inputBottom;
|
|
825
825
|
var hintAbove = hintHeight > availableBelow;
|
|
826
826
|
var selectionHeight = (firstSelection === null || firstSelection === void 0 ? void 0 : firstSelection.height_move) || 0;
|
|
827
827
|
var divOffset = ((_hintRef$current = hintRef.current) === null || _hintRef$current === void 0 ? void 0 : _hintRef$current.offsetHeight) || 0;
|
|
828
|
-
setTop(hintAbove ? selectionHeight - (divOffset +
|
|
828
|
+
setTop(hintAbove ? selectionHeight - (divOffset + 30) : selectionHeight + 4);
|
|
829
829
|
};
|
|
830
830
|
React.useEffect(function () {
|
|
831
831
|
calcuatePopUpPlacement();
|
|
@@ -928,13 +928,13 @@ var FormulaHint = function FormulaHint(props) {
|
|
|
928
928
|
var calcuatePopUpPlacement = function calcuatePopUpPlacement() {
|
|
929
929
|
var _hintRef$current;
|
|
930
930
|
if (!(firstSelection === null || firstSelection === void 0 ? void 0 : firstSelection.top) || !firstSelection.height_move || !hintRef.current) return;
|
|
931
|
-
var hintHeight =
|
|
931
|
+
var hintHeight = 360;
|
|
932
932
|
var inputBottom = firstSelection.top + firstSelection.height_move;
|
|
933
933
|
var availableBelow = window.innerHeight - inputBottom;
|
|
934
934
|
var hintAbove = hintHeight > availableBelow;
|
|
935
935
|
var selectionHeight = (firstSelection === null || firstSelection === void 0 ? void 0 : firstSelection.height_move) || 0;
|
|
936
936
|
var divOffset = ((_hintRef$current = hintRef.current) === null || _hintRef$current === void 0 ? void 0 : _hintRef$current.offsetHeight) || 0;
|
|
937
|
-
setTop(hintAbove ? selectionHeight - (divOffset +
|
|
937
|
+
setTop(hintAbove ? selectionHeight - (divOffset + 30) : selectionHeight + 4);
|
|
938
938
|
};
|
|
939
939
|
React.useEffect(function () {
|
|
940
940
|
calcuatePopUpPlacement();
|