mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
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:
parent
74d195e396
commit
0496a50238
@ -32,7 +32,7 @@
|
||||
$(".demo").tooltip({
|
||||
position: {
|
||||
my: "center top",
|
||||
at: "center bottom+5px"
|
||||
at: "center bottom+5",
|
||||
},
|
||||
show: {
|
||||
duration: "fast"
|
||||
|
5
ui/jquery.ui.tooltip.js
vendored
5
ui/jquery.ui.tooltip.js
vendored
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user