mirror of
https://github.com/jquery/jquery-ui.git
synced 2026-04-20 03:02:41 -04:00
Tooltip: Position below the element and set a max width of 300px to more closely match native tooltip behavior. Fixes #8718 - tooltip flickers when too long.
This commit is contained in:
1
themes/base/jquery.ui.tooltip.css
vendored
1
themes/base/jquery.ui.tooltip.css
vendored
@@ -10,6 +10,7 @@
|
||||
padding:8px;
|
||||
position:absolute;
|
||||
z-index:9999;
|
||||
max-width: 300px;
|
||||
-o-box-shadow: 0 0 5px #aaa;
|
||||
-moz-box-shadow: 0 0 5px #aaa;
|
||||
-webkit-box-shadow: 0 0 5px #aaa;
|
||||
|
||||
4
ui/jquery.ui.tooltip.js
vendored
4
ui/jquery.ui.tooltip.js
vendored
@@ -52,8 +52,8 @@ $.widget( "ui.tooltip", {
|
||||
// Disabled elements have inconsistent behavior across browsers (#8661)
|
||||
items: "[title]:not([disabled])",
|
||||
position: {
|
||||
my: "left+15 center",
|
||||
at: "right center",
|
||||
my: "left top+15",
|
||||
at: "left bottom",
|
||||
collision: "flipfit flipfit"
|
||||
},
|
||||
show: true,
|
||||
|
||||
Reference in New Issue
Block a user