Opened 13 years ago
Closed 13 years ago
#5847 closed bug (notabug)
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
Note: See
TracTickets for help on using
tickets.
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.