mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04: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.
(cherry picked from commit 1d9eab1ead
)
This commit is contained in:
parent
241c10044d
commit
fbc0e6afe6
@ -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