Skip to content

Commit 1d9eab1

Browse files
committed
Tooltip: Make 'flipfit flip' the collision default to avoid the tooltip ever overlapping the trigger. Also fix max-width for custom-content demo. Fixes #8739 - Tooltip: Default positioning on large items off.
1 parent 98173a3 commit 1d9eab1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

demos/tooltip/custom-content.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
width: 350px;
2323
height: 350px;
2424
}
25+
.ui-tooltip {
26+
max-width: 350px;
27+
}
2528
</style>
2629
<script>
2730
$(function() {

ui/jquery.ui.tooltip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ $.widget( "ui.tooltip", {
5454
position: {
5555
my: "left top+15",
5656
at: "left bottom",
57-
collision: "flipfit flipfit"
57+
collision: "flipfit flip"
5858
},
5959
show: true,
6060
tooltipClass: null,

0 commit comments

Comments
 (0)