Tooltip: Updated positioning - let user also customize of-property

This commit is contained in:
jzaefferer 2010-07-20 14:00:43 +02:00
parent 9b9b66d6ad
commit 52c31650b0

View File

@ -104,9 +104,9 @@ $.widget("ui.tooltip", {
this.tooltip.css({
top: 0,
left: 0
}).show().position($.extend(this.options.position, {
}).show().position( $.extend({
of: target
})).hide();
}, this.options.position )).hide();
this.tooltip.attr("aria-hidden", "false");
target.attr("aria-describedby", this.tooltip.attr("id"));