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

RadToolTip height getting changed

7 Answers 122 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Coy
Top achievements
Rank 1
Coy asked on 15 Dec 2008, 05:31 PM
Hi,

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

Sort by
0
Coy
Top achievements
Rank 1
answered on 17 Dec 2008, 05:56 PM
I have a sample project that reproduces the problem if someone wants to take a look at it.
0
Svetlina Anati
Telerik team
answered on 18 Dec 2008, 01:15 PM
Hello Coy,

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.
0
Coy
Top achievements
Rank 1
answered on 20 Jan 2009, 07:27 PM
Hi again,

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
0
Coy
Top achievements
Rank 1
answered on 20 Jan 2009, 08:57 PM
I have a sample project that demonstrates the bug.  Is there an email address that I can send it to for you to see the problem?

Thanks!
0
Svetlina Anati
Telerik team
answered on 21 Jan 2009, 04:15 PM

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,

Svetlina
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Coy
Top achievements
Rank 1
answered on 21 Jan 2009, 07:00 PM
Hi Svetlina,

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.
0
Svetlina Anati
Telerik team
answered on 22 Jan 2009, 02:34 PM
Hello Coy,

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.
Tags
ToolTip
Asked by
Coy
Top achievements
Rank 1
Answers by
Coy
Top achievements
Rank 1
Svetlina Anati
Telerik team
Share this question
or