hrm_ui_lib 1.2.3 → 1.2.4
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.
|
@@ -23,7 +23,7 @@ var useGetTooltipPosition = function useGetTooltipPosition(info) {
|
|
|
23
23
|
// this is calculations for tooltip top/left/bottom/right positions
|
|
24
24
|
var calculatedPosition = useMemo(function () {
|
|
25
25
|
var hasTopSpace = tooltipHeight + GAP < top;
|
|
26
|
-
var hasBottomSpace = tooltipHeight + GAP < window.innerHeight - bottom;
|
|
26
|
+
var hasBottomSpace = top + tooltipHeight + GAP < window.innerHeight - bottom;
|
|
27
27
|
var hasLeftSpace = tooltipWidth + GAP < left;
|
|
28
28
|
var hasRightSpace = tooltipWidth + GAP < window.innerWidth - left;
|
|
29
29
|
var hasMiddleRightSpace = tooltipWidth + GAP < window.innerWidth - left - itemWidth;
|