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

RadToolTip border disappear when browser window resize

2 Answers 55 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Guillaume
Top achievements
Rank 1
Guillaume asked on 01 Jul 2015, 06:04 PM

Hi,

I am having an issue with the RadToolTip when I resize my broser window and the width of the tooltip is not set. When I resize the browser, the border left and right disappear.

I have manage reproduce the problem in a blank page with the following code :

<telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnablePartialRendering="True" LoadScriptsBeforeUI="True">
</telerik:RadScriptManager>
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" UpdatePanelsRenderMode="Inline">
</telerik:RadAjaxManager>
 
<asp:Label ID="LabelForToolTipTest" runat="server" Text="Label avec Telerik ToolTip"></asp:Label>
<telerik:RadToolTip ID="RadToolTipForLabel" runat="server" TargetControlID="LabelForToolTipTest" Position="BottomRight" HideDelay="5000">
    <div style="width:500px"></div>
</telerik:RadToolTip>
 

If i set a width to the tooltip the problem is solved, but in my case this is not possible, because the content is always different. The same issue occurs with the RadToolTipManager.

Thank for your help,

Guillaume

2 Answers, 1 is accepted

Sort by
0
Guillaume
Top achievements
Rank 1
answered on 01 Jul 2015, 06:13 PM
I forgot to mention that the issue only occurs in IE9. I tried it in chrome and cannot reproduce the problem.
0
Marin Bratanov
Telerik team
answered on 02 Jul 2015, 07:53 AM

Hi Guillaume,

For the tooltip to work as expected, it must have dimensions set: http://docs.telerik.com/devtools/aspnet-ajax/controls/tooltip/troubleshooting/common-issues#tooltip-is-not-positioned-correctly.

The tooltip control does not offer autosizing capabilities like RadWindow so it relies on the developer to provide dimensions that are enough to accommodate the content. If they are not, the browser would sometimes stretch its HTML elements in an unexpected way.

This is more pronounced in the Classic RenderMode as it uses tables for the layout. Thus, I can also suggest switching to the Lightweight RenderMode because its uses divs: http://docs.telerik.com/devtools/aspnet-ajax/controls/tooltip/mobile-support/render-modes.

Regards,

Marin Bratanov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
ToolTip
Asked by
Guillaume
Top achievements
Rank 1
Answers by
Guillaume
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or