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

Strange Tooltip Alignment

4 Answers 80 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Chase Florell
Top achievements
Rank 1
Chase Florell asked on 17 Jul 2008, 09:19 PM
I have been building this website for a while now and everything was working properly including the ToolTip

Reciently my HDD crashed and I had to reload my OS... since then, my ToolTip is not aligning as it should.  The code nor the CSS has changed, so I am unsure what is going on. 

Screenshot

4 Answers, 1 is accepted

Sort by
0
Ben
Top achievements
Rank 1
answered on 17 Jul 2008, 10:18 PM
Just a thought:  It could be that your project file(s) is corrupt and needs to be redone (rebuilt). To do that perhaps you might want to create a new project and copy your code into it. That is the safest and fastest way to find out whether your project file(s) had been corrupted by your HDD crash.
0
Chase Florell
Top achievements
Rank 1
answered on 17 Jul 2008, 10:57 PM
Why would a project file cause alignment issues in HTML?  I forgot to mention that I also updated the Telerik AJAX Control to the latest version after the reinstall (oops.. should have mentioned that).

So I am guessing that this alignment issue surfaced in the update.

My code is very complex. but the "jist" of it is that I am using a Wizard and putting the ToolTip outside of the wizard... although placing it inside the wizard (beside the target control) renders the same results.
0
Accepted
Svetlina Anati
Telerik team
answered on 18 Jul 2008, 09:03 AM
Hi Chase,

We updated RadToolTip's positioning logic to function in browser's quirks mode due to it commonly being used in DNN, where the DOCTYPE is not XHTML compliant but users cannot change that. Most probably the applied modifications are the reason for the reported behavior.

This is logged in our database and we will do our best to make the RadToolTip work as expected both in quirks mode and in xhtml mode for our Q2 2008 release, which is scheduled for the 22 July. 

For the time being as a workaround I suggest to override the default function which adds the tooltip to the page as shown below:

<script>     
    if (typeof(Telerik) != "undefined")     
    {     
        Telerik.Web.UI.RadToolTip.prototype._addToolTipToDocument = function(elem)     
        {                                
           //Append tooltip to end of document                                    
           var form = document.forms[0];             
           form.appendChild(this._popupElement);           
        };     
    }     
    
</script>   


Sincerely yours,
Svetlina
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Chase Florell
Top achievements
Rank 1
answered on 18 Jul 2008, 04:14 PM
Thank you, that hack worked.
Tags
ToolTip
Asked by
Chase Florell
Top achievements
Rank 1
Answers by
Ben
Top achievements
Rank 1
Chase Florell
Top achievements
Rank 1
Svetlina Anati
Telerik team
Share this question
or