I have a page that is using RadToolTipManager to control the tooltip for several elements on the page. I am experiencing some inconsistencies with the height of the tooltip that is rendered. The problem is as follows:
When I open the tooltip the first time, the height of the tooltip is one size, usually smaller than expected so that a control is cut-off at the bottom. I close the tooltip then re-open the same one, and the height of the tooltip has increased. The control that was cut-off before is now clearly visible. This type of behavior is inconsistent.
I tried to set the height on the client side in the OnClientBeforeShow event, but it didn't appear to work.
Any help would be appreciated.
Thanks,
Coy
7 Answers, 1 is accepted
![](/forums/images/avatarimages/default.gif)
We recently found a problem with the code which sets the overflow of the tooltip in few particular scenarios. The problem is already fixed and the fix will be available in our next release which is scheduled for January. For the time being I suggest to put the following code on your page in order to workaround the problem:
<script type="text/javascript"> |
Telerik.Web.UI.RadToolTip.prototype._oldSetOverflow = Telerik.Web.UI.RadToolTip.prototype._setOverflow; |
Telerik.Web.UI.RadToolTip.prototype._setOverflow = function() |
{ |
var flow = this._contentScrolling; |
if (flow == Telerik.Web.UI.ToolTipScrolling.Auto) return; |
else Telerik.Web.UI.RadToolTip.prototype._oldSetOverflow(); |
}; |
</script> |
Sincerely yours,
Svetlina
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
![](/forums/images/avatarimages/default.gif)
We received the update for Webcontrols that was just released, but it does not look as if this bug was fixed in this release.
Could you confirm that this problem was addressed in this release? Thanks!
Coy
![](/forums/images/avatarimages/default.gif)
Thanks!
Hello Coy,
In the latest build changes in the ContentScrolling functionality were introduced. There was a logical problem in previous implementation but it is now fixed. When you have ContentScrolling = Auto you should explicitly provide sizes for the tooltip's width and height because the tooltip can't "understand" according to what size to create scrollbars or not. If you want to force the tooltip automatically calculate its size without generating scrollbars, you should set ContentScrolling = Default, which is a new enum value and the default setting of the property.
This being said, you should either set ContentScrolling = Default or set ContentScrolling = Auto along with explicit Width and Height values. I hope that my explanations are clear and helpful, let me know if you need further assistance.
Greetings,
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
![](/forums/images/avatarimages/default.gif)
Thanks for the explanation but in this case, we don't want scroll bars at all to appear. Therefore, we have the ContentScrolling="None" and are explicitly setting the height and width values.
I tried setting ContentScrolling="Auto" and setting a height and width but the "resizing behavior" persisted. I've tried various combinations of settings, but the problem is not solved.
I will gladly send you the sample project for you to take a look at.
I also think that the best way to proceed is to create a simple page with your settings, open a new support ticket and send it to me along with the Bin folder, the dll you are using and a detailed explanation of the actual and the desired behavior. Once I examine it locally, I will do my best to help.
Regards,
Svetlina
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.