You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Dynamic Tooltip Size w/ Sliding Doors Created Oct 20, 2009

This thread is solved

Views: 2264     Replies: 2     Last reply Oct 30, 2009  
You must login first before you can use this feature

sacha

Posts: 3

Registered:
Jul 27, 2009

Dynamic Tooltip Size w/ Sliding Doors

Posted: Oct 20, 2009

Is there a way to make the tooltip's size stretch to accomodate its content? The catch here is I'd like to use sliding doors, so I need two divs, with the tooltip's content going into the inner one.

With the default tooltip configuration, everything inside the tooltip div is replaced by the content of the "title" attribute, including the inner div. How can I tell the tooltip to keep that div intact?

toddprouty

Posts: 1

Registered:
Oct 30, 2009

» Dynamic Tooltip Size w/ Sliding Doors

Posted: Oct 30, 2009

Reply to: Dynamic Tooltip Size w/ Sliding Doors, from sacha
I'm also wondering about this. I may just use a div with a background color and border as opposed to the sliding door method, but my tooltips will have content of varying size, something not shown in the demos. Experimenting is my next step, but does anyone have experience with this?

sacha

Posts: 3

Registered:
Jul 27, 2009

» » Dynamic Tooltip Size w/ Sliding Doors

Posted: Oct 30, 2009

Reply to: » Dynamic Tooltip Size w/ Sliding Doors, from toddprouty
Well I found the solution on my own. If you want to add an empty div inside the tooltip it looks something like this:


		$(".tooltip").tooltip({
			onShow: function() { 
		        this.getTip().wrapInner("<div></div>");
		    } 
		});