mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-12-07 06:14:24 +00:00
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.
This commit is contained in:
parent
98173a3d0e
commit
1d9eab1ead
@ -22,6 +22,9 @@
|
|||||||
width: 350px;
|
width: 350px;
|
||||||
height: 350px;
|
height: 350px;
|
||||||
}
|
}
|
||||||
|
.ui-tooltip {
|
||||||
|
max-width: 350px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<script>
|
<script>
|
||||||
$(function() {
|
$(function() {
|
||||||
|
2
ui/jquery.ui.tooltip.js
vendored
2
ui/jquery.ui.tooltip.js
vendored
@ -54,7 +54,7 @@ $.widget( "ui.tooltip", {
|
|||||||
position: {
|
position: {
|
||||||
my: "left top+15",
|
my: "left top+15",
|
||||||
at: "left bottom",
|
at: "left bottom",
|
||||||
collision: "flipfit flipfit"
|
collision: "flipfit flip"
|
||||||
},
|
},
|
||||||
show: true,
|
show: true,
|
||||||
tooltipClass: null,
|
tooltipClass: null,
|
||||||
|
Loading…
Reference in New Issue
Block a user