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

Example Tooltip Basic usage with resizable Image

3 Answers 229 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 05 Oct 2018, 05:37 PM

Hello,

how can I modify the example  Tooltip / Basic usage for a resizable image? On my mobile phone only the half of the image is shown. But when I make the image resizable, then the absolute positions if the tooltips don't match.
Is an example available?

Regards,

Peter

3 Answers, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 09 Oct 2018, 01:48 PM
Hello Peter,

I am afraid that the Tooltip widget would not be able to handle the case with resizable images. In case the image does not fit on the screen, it could be made scrollable. In such case the Tooltip should work properly.

Here you will find a modified version of the demo concerned having the image in a scrollable content.

Regards,
Veselin Tsvetanov
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.
0
Peter
Top achievements
Rank 1
answered on 09 Oct 2018, 02:57 PM

Hello Veselin,

I found a solution to allow decrease the width of the image on small smartphone screen:

Image in img tag and width 100%, the container div with display:inline-block and tooltip positions in %.

https://dojo.telerik.com/UPuseMuk/3

Regards,

Peter

 

0
Veselin Tsvetanov
Telerik team
answered on 11 Oct 2018, 08:57 AM
Hello Peter,

The suggested, indeed, is an appropriate solution for the discussed scenario. Thank you for sharing it.

Regards,
Veselin Tsvetanov
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
Peter
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Peter
Top achievements
Rank 1
Share this question
or