Skip to main content

Search and Top Navigation

#5847 closed bug (notabug)

Opened July 21, 2010 04:46PM UTC

Closed July 21, 2010 04:50PM UTC

Tooltip positioning is incorrect when target is absolutely-positioned.

Reported by: jasonwyatt Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.core Version: 1.8.2
Keywords: Cc:
Blocked by: Blocking:
Description

If you try to create a tooltip for an element which is positioned absolutely, the positioning of the tooltip is in error.

The following example recreates this issue. Notice how the tooltip isn't displayed correctly.

$('<div class="tooltipbug" \\
        style="background-color: green; top: 100px; left: 100px; width: 100px; height: 100px; position: absolute">\\
    </div>').appendTo('body');

$('.tooltipbug').tooltip({
    content: function(){
        return "Some awesome content should show up!"
    }
}).tooltip('open');

I noticed this bug in the 1.9m2 tag on github: http://github.com/jquery/jquery-ui/blob/1.9m2/ui/jquery.ui.tooltip.js

Attachments (0)
Change History (1)

Changed July 21, 2010 04:50PM UTC by scottgonzalez comment:1

resolution: → invalid
status: newclosed

We don't accept tickets for plugins until they are published in an alpha, beta, or stable release. Please report issues for milestone releases on the forum. Thanks.