Skip to content

Commit a11d1b9

Browse files
committed
Addressing issue from #101, tooltip not showing properly
1 parent 3194d79 commit a11d1b9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Popover.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ class BasePopover extends Component<BasePopoverProps, BasePopoverState> {
913913
}
914914
}
915915
// eslint-disable-next-line
916-
return new Point(arrowX, (FIX_SHIFT * 2) /* Temp fix for useNativeDriver issue */ + arrowY);
916+
return new Point(arrowX, FIX_SHIFT /* Temp fix for useNativeDriver issue */ + arrowY);
917917
}
918918

919919
getTranslateOrigin() {
@@ -977,7 +977,7 @@ class BasePopover extends Component<BasePopoverProps, BasePopoverState> {
977977
// Should grow from anchor point
978978
const translateStart = this.getTranslateOrigin();
979979
// eslint-disable-next-line
980-
translateStart.y += (FIX_SHIFT * 2) // Temp fix for useNativeDriver issue
980+
translateStart.y += FIX_SHIFT // Temp fix for useNativeDriver issue
981981
values.translate.setValue(translateStart);
982982
const translatePoint = new Point(nextGeom.popoverOrigin.x, nextGeom.popoverOrigin.y);
983983
values.translateArrow.setValue(this.getArrowTranslateLocation(translatePoint, nextGeom));
@@ -1046,7 +1046,7 @@ class BasePopover extends Component<BasePopoverProps, BasePopoverState> {
10461046
const newArrowLocation = this.getArrowTranslateLocation(translatePoint, geom);
10471047

10481048
// eslint-disable-next-line
1049-
translatePoint.y = translatePoint.y + (FIX_SHIFT * 2) // Temp fix for useNativeDriver issue
1049+
translatePoint.y = translatePoint.y + FIX_SHIFT // Temp fix for useNativeDriver issue
10501050

10511051
if (!fade && fade !== 0) {
10521052
console.log('Popover: Fade value is null');

0 commit comments

Comments
 (0)