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.
This commit is contained in:
Jörn Zaefferer 2011-05-02 18:21:04 +02:00
parent 74d195e396
commit 0496a50238
2 changed files with 3 additions and 4 deletions

View File

@ -32,7 +32,7 @@
$(".demo").tooltip({
position: {
my: "center top",
at: "center bottom+5px"
at: "center bottom+5",
},
show: {
duration: "fast"

View File

@ -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() {