8000 Tooltip: Position below the element and set a max width of 300px to m… · faroncoder/jquery-ui@7af1ec7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7af1ec7

Browse files
committed
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.
1 parent d67522e commit 7af1ec7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

themes/base/jquery.ui.tooltip.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
padding:8px;
1111
position:absolute;
1212
z-index:9999;
13+
max-width: 300px;
1314
-o-box-shadow: 0 0 5px #aaa;
1415
-moz-box-shadow: 0 0 5px #aaa;
1516
-webkit-box-shadow: 0 0 5px #aaa;

ui/jquery.ui.tooltip.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ $.widget( "ui.tooltip", {
5252
// Disabled elements have inconsistent behavior across browsers (#8661)
5353
items: "[title]:not([disabled])",
5454
position: {
55-
my: "left+15 center",
56-
at: "right center",
55+
my: "left top+15",
56+
at: "left bottom",
5757
collision: "flipfit flipfit"
5858
},
5959
show: true,

0 commit comments

Comments
 (0)
0