Unplanned
Last Updated: 18 Mar 2024 10:46 by ADMIN
Michael D
Created on: 22 Jun 2022 08:52
Category: Kendo UI for jQuery
Type: Feature Request
1
Tooltip does not flip although it would make more sense

The Kendo UI Popup's "collision" option allows to specify how its positioning algorithm should handle situations where there is not enough space. When "collision" is set to "flip" and there is not enough space to display the popup where it was configured to be displayed (via origin and position), it flips to the other side of its anchor (documented here). If there is no space on the other side either, it flips back to the original position.

I've created an example situation where this happens in this DOJO. You might have to resize the browser window a bit to make the content on either side of the input smaller than the popup's width. As you can see, the position of the popup now is the least fortunate one:

  • It would make more sense to flip, despite there being not enough space, because more content could be displayed on the left side than on the right side.
  • It would be even better if the popup detected that neither sides provides enough space and instead reduced its size - the size is not fixed but determined by the content.

One might think I could set the popup's width to "min-content" via CSS to force wrapping, but this always wraps the content and wherever possible. Is there any way to make the popup's content wrap, but only if necessary?

4 comments
ADMIN
Neli
Posted on: 18 Mar 2024 10:46

Hello Michael,

The issue is not scheduled for implementation yet. Please note, that the feature requests are added for implementation based on the demand of the community. So, we will monitor if the issue gathers more votes, and based on we will proceed with adding it for implementation. 

Regards,
Neli
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 15:00
While doing our regular housekeeping tasks, I have stumbled over this issue again. Are there any news on this?
ADMIN
Neli
Posted on: 29 Jun 2022 09:32

Hi Michael,

The current behavior of the Popup is the expected one. Currently, the Popup will flip only if there is enough space, but if there is not enough space on both sides it will not check on which side there is more space. Thus, this could not be considered a bug. 

However, I am converting the thread to a Feature Request as the current behavior could be extended as suggested in your email. For example, the logic could be extended to check on which side there is more space and flip the Popup accordingly. There could be an additional configuration for the collision that could allow the popup to force the Popup to flip. Feel free to leave any additional comments on the Feature request if needed.

I am afraid that I could not suggest a possible workaround to wrap the Popup content only when necessary. Currently, It is not possible to change the collision settings at runtime as discussed in the Feature request linked here.  

In case you have any additional questions or comments please let us know.

Regards,
Neli
Progress Telerik

The Premier Dev Conference is back! 

Coming to you live from Progress360 in-person or on your own time, DevReach for all. Register Today.


ADMIN
Neli
Posted on: 29 Jun 2022 08:46

Hi Michael,

I will need a little bit more time to review the issue. I will get back to you with more information on the matter once I have something to share.

Thank you very much fro your patience.

Regards,
Neli
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.