From 52c31650b04056716f71b92b5d8f47ad11699932 Mon Sep 17 00:00:00 2001 From: jzaefferer Date: Tue, 20 Jul 2010 14:00:43 +0200 Subject: [PATCH] Tooltip: Updated positioning - let user also customize of-property --- ui/jquery.ui.tooltip.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js index 68d29f05f..caa36b205 100644 --- a/ui/jquery.ui.tooltip.js +++ b/ui/jquery.ui.tooltip.js @@ -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"));