Describe the bug
When using RichToolTips with a PositionProvider from TooltipDefaults.rememberRichTooltipPositionProvider(), the position of the tooltip might be incorrect after resizing the browser window.
Affected platforms
Web (K/JS) - Canvas based API (tested with Firefox and Chrome on Windows 10)
Versions
Kotlin version*: 1.9.22
Compose Multiplatform version*: 1.6.0
OS version(s)* (required for Desktop and iOS issues): Windows 10
OS architecture (x86 or arm64): x86
Device (model or simulator for iOS issues):
JDK (for desktop issues):
To Reproduce
Steps and/or the code snippet to reproduce the behavior:
Expected behavior
The tooltip position should be correct after resizing the browser window.
Screenshots
The screenshot below shows the incorrectly positioned tooltip that should be anchored to the right icon (the face), after the browser window was resized. Before resizing the window, the tooltip displays in the expected position.
In the second screenshot below, you can see that the ThumbUp tooltip is displaying to the left of the anchor even though there is sufficient space for it to be displayed below and to the right, which is the expected position when there is enough screen space to the right of the anchor (if the window is subsequently resized to be much wider the tooltip will again be positioned to the right of its anchor).
Additional context
Add any other context about the problem here.
Describe the bug When using RichToolTips with a PositionProvider from TooltipDefaults.rememberRichTooltipPositionProvider(), the position of the tooltip might be incorrect after resizing the browser window.
Affected platforms
Versions
To Reproduce Steps and/or the code snippet to reproduce the behavior:
Expected behavior The tooltip position should be correct after resizing the browser window.
Screenshots The screenshot below shows the incorrectly positioned tooltip that should be anchored to the right icon (the face), after the browser window was resized. Before resizing the window, the tooltip displays in the expected position.
In the second screenshot below, you can see that the ThumbUp tooltip is displaying to the left of the anchor even though there is sufficient space for it to be displayed below and to the right, which is the expected position when there is enough screen space to the right of the anchor (if the window is subsequently resized to be much wider the tooltip will again be positioned to the right of its anchor).
Additional context Add any other context about the problem here.