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:
Jörn Zaefferer 2012-11-05 19:05:58 +01:00
parent 98173a3d0e
commit 1d9eab1ead
2 changed files with 4 additions and 1 deletions

View File

@ -22,6 +22,9 @@
width: 350px;
height: 350px;
}
.ui-tooltip {
max-width: 350px;
}
</style>
<script>
$(function() {

View File

@ -54,7 +54,7 @@ $.widget( "ui.tooltip", {
position: {
my: "left top+15",
at: "left bottom",
collision: "flipfit flipfit"
collision: "flipfit flip"
},
show: true,
tooltipClass: null,