diff options
author | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2011-05-02 18:21:04 +0200 |
---|---|---|
committer | Jörn Zaefferer <joern.zaefferer@gmail.com> | 2011-05-02 18:22:00 +0200 |
commit | 0496a50238a47463c171219b6370173874193130 (patch) | |
tree | f00acfa1e2be84537157f43a19f012adce094b86 | |
parent | 74d195e39681791545b3026a66bfa3f319237e5a (diff) | |
download | jquery-ui-0496a50238a47463c171219b6370173874193130.tar.gz jquery-ui-0496a50238a47463c171219b6370173874193130.zip |
Tooltip: Replace offset property with inline my+offset to make it easier
to override the offset. Fixes the odd offset in the video player demo.
Also doesn't need units.
-rw-r--r-- | demos/tooltip/video-player.html | 2 | ||||
-rw-r--r-- | ui/jquery.ui.tooltip.js | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/demos/tooltip/video-player.html b/demos/tooltip/video-player.html index 73310e349..c890c76b4 100644 --- a/demos/tooltip/video-player.html +++ b/demos/tooltip/video-player.html @@ -32,7 +32,7 @@ $(".demo").tooltip({ position: { my: "center top", - at: "center bottom+5px" + at: "center bottom+5", }, show: { duration: "fast" diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js index bbf58c2a1..20638cba5 100644 --- a/ui/jquery.ui.tooltip.js +++ b/ui/jquery.ui.tooltip.js @@ -24,9 +24,8 @@ $.widget("ui.tooltip", { return $( this ).attr( "title" ); }, position: { - my: "left center", - at: "right center", - offset: "15 0" + my: "left+15 center", + at: "right center" } }, _create: function() { |