Tooltip positioning off screen

2 posts, 0 answers
  1. Andrew
    Andrew avatar
    1 posts
    Member since:
    Jul 2016

    Posted 21 Sep 2018 Link to this post

    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!
  2. Dimitar
    Dimitar avatar
    502 posts

    Posted 25 Sep 2018 Link to this post

    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.

    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.
Back to Top