Hi
Niko Bellic,
We
understand that in the showcase example, the tooltip remains fixed in place
even while scrolling, whereas simply setting the IsSticky
property in the API demo causes the tooltip to move along with the page scroll.
To
replicate the showcase behavior, we prepared a minimal sample where the tooltip
is initialized with the IsSticky="true" property and
positioned absolutely within the container. By applying custom CSS (position:
absolute; left: calc(50% - 60px); top: 45%;), the tooltip is anchored to a
fixed location on the page rather than following the target element during
scroll. This ensures the tooltip remains visible and stationary, similar to the
"Interactive Tooltip" variant in the demo showcase.
In
summary:
- IsSticky keeps the
tooltip open after interaction.
- Absolute
positioning via CSS ensures the tooltip does not move with the target
element during page scroll.
This
combination achieves the same sticky, scroll-independent behavior demonstrated
in the showcase page.
For
your reference, we’ve also included a sample showing this in action along with
a GIF demonstration:
Gif:
Sample:
https://blazorplayground.syncfusion.com/embed/VXVnDzigeFTxXICJ?appbar=true&editor=true&result=true&errorlist=true&theme=fluent2
Regards,
K
N Siddartha