kendo-vue
kendo-vue copied to clipboard
[Bug][Tooltip] Tooltip position is not set properly if it goes outside the viewport
Describe the bug
Tooltip position is not set properly if it goes outside the viewport. The problem is faced both on fixed (e.g. left) position and `auto).
video:
Position left - https://somup.com/c0lX2tgR4V
Position auto - https://somup.com/c0lX2UgR4I
To Reproduce Steps to reproduce the behavior:
- Go to https://stackblitz.com/edit/n7ozup?file=src%2Fmain.vue
- Hover the first link
Scenario with `auto:
- Go to https://stackblitz.com/edit/n7ozup-nemy75?file=src%2Fmain.vue
- Hover the last link
Result: Part of the tooltip is shown outside the viewport.
Expected behavior The tooltip should change the position if there is no enough space like in Kendo UI for jQuery: https://dojo.telerik.com/AqUFEsAn
Additional context Reported in Ticket ID: 1633619