This is a migrated thread and some comments may be shown as answers.

Tooltip positioning off screen

1 Answer 250 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Andrew
Top achievements
Rank 1
Andrew asked on 21 Sep 2018, 02:31 PM
Hello, I've come across an issue where if I load the tooltip content from another element on the screen, and the tooltip trigger is near the bottom of the screen, the tooltip overflows off the bottom of the screen. There is no height set, so it looks like Kendo is grabbing the height of the tooltip container before the content gets loaded in to calculate the position of the tooltip. If I close the tooltip and reopen it, it positions correctly because the content is already loaded, and the correct height is set to make that calculation. Is there a way to force that content in before the positioning takes place? Thanks!

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 25 Sep 2018, 01:15 PM
Hi Andrew,

I reproduces this behavior on the following Dojo snippet, It is caused by not having the image loaded initially when the tooltip becomes visible. When the image is loaded, tooltip spans out of the bottom of the screen. I am afraid that there is no workaround for this scenario. Only setting tooltip height prevents this behavior. It would be helpful if you provide a Dojo snippet of your scenario to check if there is a possible workaround for it.

Regards,
Dimitar
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
ToolTip
Asked by
Andrew
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or