Skip to content

Commit 55c9416

Browse files
author
Nitin Chaudhary
committed
Change files
1 parent 7718169 commit 55c9416

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"type": "prerelease",
3+
"comment": "fix: Fix tooltip positioning for ContentIsland and dismiss on scroll",
4+
"packageName": "react-native-windows",
5+
"email": "nitchaudhary@microsoft.com",
6+
"dependentChangeType": "patch"
7+
}

vnext/Microsoft.ReactNative/Fabric/Composition/TooltipService.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,13 @@ void RegisterTooltipWndClass() noexcept {
163163

164164
// Clamp tooltip position so it stays within the nearest monitor's work area.
165165
// Flips the tooltip below the cursor if it would go above the work area.
166-
void ClampTooltipToMonitor(POINT cursorScreenPt, int tooltipWidth, int tooltipHeight, float scaleFactor, int &x, int &y) noexcept {
166+
void ClampTooltipToMonitor(
167+
POINT cursorScreenPt,
168+
int tooltipWidth,
169+
int tooltipHeight,
170+
float scaleFactor,
171+
int &x,
172+
int &y) noexcept {
167173
HMONITOR hMonitor = MonitorFromPoint(cursorScreenPt, MONITOR_DEFAULTTONEAREST);
168174
if (!hMonitor)
169175
return;

0 commit comments

Comments
 (0)