Control.Modal: tooltip

Hi, :]

The build-in tooltip function in the control.modal suite is able to break a page which causes nasty scrollbars..

I hope someone already noticed it and created a fix :)

Roland,

Posted June 30th, 2007 at 5:06am by Roland

It's a new feature in 2.2. I haven't seen it do that, but I don't doubt that it does! Can you post URLs, and what browsers it does this in?

Posted June 30th, 2007 at 9:17am by ryan

http://www.devarea.nl/webroot/img/misc/tooltip_bug.jpg

Posted July 2nd, 2007 at 1:46am by Roland

Interesting... I'll look at how other tooltip libraries handle this. In the mean time, set the offsetLeft option of that tooltip to -150 or something around there, and it would appear on the left side instead of the right, this will prevent the scrollbars.

Posted July 2nd, 2007 at 11:06am by ryan

Take a look at this tooltip script, which handles this issue great;

http://www.gerd-tentler.de/tools/tooltip/index.html

Can u contact me if you made a fix or something :]

Posted July 2nd, 2007 at 11:51am by Roland

Sidenote: i love your work though \o/

Posted July 2nd, 2007 at 11:51am by Roland

You should take a look at these 2 prototype methods :]

Position.within() Position.withinIncludingScrolloffsets()

Posted July 2nd, 2007 at 1:40pm by Roland

Ah I see, instead of trapping the onmouseover, onmouseout, do you suggest I use Position.within() to track it?

I'll have a look at that script. I just noticed that is calling open() and close() a lot too when using position: mouse. I think I need to do some more investigation to get this feature really ironed out. If I do it's going to be pretty all purpose though!

Thanks for the suggestions.

Posted July 2nd, 2007 at 2:30pm by ryan

http://www.illustate.com/playground/scriptaculous/tooltip/

I think im gonna use that one for now ;]

Posted July 3rd, 2007 at 7:54am by Roland

Above script also handles this issue not so great -.- hope u can overrule it ;]

Posted July 3rd, 2007 at 11:46am by Roland

I'm working on improving the tooltip performance as we speak, but I wanted to chime in that I think the current behavior is the appropriate one. After thinking about it, I think that the offsetLeft option is what you should be using to ensure this doesn't happen.

Posted July 5th, 2007 at 5:08pm by ryan

I would agree that some type of collision detection would be beneficial as the offset isn't always effective. Check out how istockphoto.com does it. Just search for any image and mouse over it to see the tooltip. The tooltip will never exceed the visible browser area unless you resize your window really small.

Posted August 10th, 2007 at 7:51pm by BrodySlater

Login or Register to Post