Skip to content

Commit 0496a50

Browse files
committed
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.
1 parent 74d195e commit 0496a50

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

demos/tooltip/video-player.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
$(".demo").tooltip({
3333
position: {
3434
my: "center top",
35-
at: "center bottom+5px"
35+
at: "center bottom+5",
3636
},
3737
show: {
3838
duration: "fast"

ui/jquery.ui.tooltip.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@ $.widget("ui.tooltip", {
2424
return $( this ).attr( "title" );
2525
},
2626
position: {
27-
my: "left center",
28-
at: "right center",
29-
offset: "15 0"
27+
my: "left+15 center",
28+
at: "right center"
3029
}
3130
},
3231
_create: function() {

0 commit comments

Comments
 (0)