Our pure JavaScript Scheduler component


Post by cheradee »

Hi,

How do we fix a tooltip that goes outside the viewport when hovering on the bottom part of the page? How do we put it on top position like when hovering with events? Please see image below for reference.

MicrosoftTeams-image (2).png
MicrosoftTeams-image (2).png (77.62 KiB) Viewed 169 times

Thanks,
Chardine


Post by tasnim »

Hi,
If you set constrainTo : document.body it will not go outside of the viewport

scheduleTooltip : {
	constrainTo : document.body
}
Attachments
screenshot_2022-09-22_at_08.38.38.png
screenshot_2022-09-22_at_08.38.38.png (171.43 KiB) Viewed 159 times

Post by cheradee »

Thanks, that solved it.


Post Reply