Tooltip Menu / Posts /

how to make menu expand

17
Hi
I generate tooltip contents dynamically like this:

var content='';
content = '<div id="rectangle" onmouseover="addRectangleToDiv()>...</div>';
tooltip.pop(caller, content);

Now all I've shown so far works fine.
Now addRectangleToDiv() function adds more stuff to the contents of the tooltip menu but the tooltip does not resize to display this content newly added.

function addRectangleToDiv(){
   $('#rectangle').addRectangleWithContents();
}

So the question is, how do I make the tooltip resize after I change its contents in order for the tooltip to fit the new contents?
Thanks
Adrian  11 years ago   viewed: 10903    

1 Answer

1
Have you tried the double hash sign approach?
You can refer to the 2nd item of the "3 Ways to Set Tooltip Content" under the "How to Use" tab on page Tooltip Widget.
milo   11 years ago

   

Your name*
Password
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;

  • When you want to start a new page for your question: