Unplanned
Last Updated: 23 Apr 2024 06:15 by Michael D
Michael D
Created on: 30 May 2022 13:18
Category: Tooltip
Type: Bug Report
0
Tooltip size calculations do not work as expected in some themes

I have noticed that, after switching themes, the tooltips in our application do no longer work correctly. I was able to reproduce the issue in the following two DOJOs:

The only difference between those two is the stylesheet to be loaded (line 6).

Steps to reproduce:

  1. load the DOJO
  2. hover over the red dot (notice how the text uses all space available and does not get wrapped unless necessary)
  3. hover over the green dot 
  4. hover over the red dot again

In step 4, the correct behavior would be displaying the tooltip in the same fashion as in step 2. However, in the faulty DOJO, it can be seen that the tooltip does not expand past the width of the text that is displayed when hovering over the green dot. This means that when displaying long tooltips after short ones, they are always wrapped unnecessarily.

A way to fix this behavior (and what's actually the difference between the two stylesheets) is to set the position on the ".k-animation-container" back to its default value "static". Usually, this value is overridden by the output of the size calculations, but during the calculations this value comes to play.

This third DOJO demonstrates the fix described above.

Please note that when using the default-ocean-blue stylesheet, the positioning of the callout seems to be broken as well.

4 comments
Michael D
Posted on: 23 Apr 2024 06:15
Thank you for the update.

I did a quick test and was not able to reproduce the behaviour in the latest version (2024.1.319) as well (see this DOJO). I'll try to remove our current fix with the upcoming release and reach out again in case there are any remaining issues.
ADMIN
Martin
Posted on: 13 Mar 2024 12:59

Hello, Michael,

Could you please try with the latest version? The bug doesn't appear to reproduce with it.

Regards,
Martin
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
Michael D
Posted on: 11 Mar 2024 14:26
While doing our regular housekeeping tasks, I have stumbled over this issue again. Are there any news on this?
ADMIN
Martin
Posted on: 06 Jun 2022 07:19

Hello, Michael,

Thank you for reporting the bug.

About the part with the position - the ocean-blue theme is a SASS based which means it should be used alone, without the kendo.common.min.css file (which is used for the LESS based themes. Here is the modified example for reference.

As a small token of gratitude for reporting the width issue, I am updating your Telerik Points.

Let me know if you have any further questions.

Regards,
Martin
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.