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:
Jörn Zaefferer 2012-11-05 19:05:58 +01:00 committed by Scott González
parent 241c10044d
commit fbc0e6afe6
2 changed files with 4 additions and 1 deletions

View File

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

View File

@ -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,