Skip to content
Permalink
Browse files

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.
  • Loading branch information...
jzaefferer committed May 2, 2011
1 parent 74d195e commit 0496a50238a47463c171219b6370173874193130
Showing with 3 additions and 4 deletions.
  1. +1 −1 demos/tooltip/video-player.html
  2. +2 −3 ui/jquery.ui.tooltip.js
@@ -32,7 +32,7 @@
$(".demo").tooltip({
position: {
my: "center top",
at: "center bottom+5px"
at: "center bottom+5",
},
show: {
duration: "fast"
@@ -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() {

0 comments on commit 0496a50

Please sign in to comment.
You can’t perform that action at this time.