Skip to content

Commit

Permalink
Tooltip: Replace offset property with inline my+offset to make it easier
Browse files Browse the repository at this point in the history
to override the offset. Fixes the odd offset in the video player demo.
Also doesn't need units.
  • Loading branch information
jzaefferer committed May 2, 2011
1 parent 74d195e commit 0496a50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion demos/tooltip/video-player.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
$(".demo").tooltip({ $(".demo").tooltip({
position: { position: {
my: "center top", my: "center top",
at: "center bottom+5px" at: "center bottom+5",
}, },
show: { show: {
duration: "fast" duration: "fast"
Expand Down
5 changes: 2 additions & 3 deletions ui/jquery.ui.tooltip.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ $.widget("ui.tooltip", {
return $( this ).attr( "title" ); return $( this ).attr( "title" );
}, },
position: { position: {
my: "left center", my: "left+15 center",
at: "right center", at: "right center"
offset: "15 0"
} }
}, },
_create: function() { _create: function() {
Expand Down

0 comments on commit 0496a50

Please sign in to comment.