Permalink
Browse files

Tooltip: Make 'flipfit flip' the collision default to avoid the toolt…

…ip 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 1d9eab1)
  • Loading branch information...
1 parent 241c100 commit fbc0e6afe6cb277f7e8b91817484cdcd002afc32 @jzaefferer jzaefferer committed with scottgonzalez Nov 5, 2012
Showing with 4 additions and 1 deletion.
  1. +3 −0 demos/tooltip/custom-content.html
  2. +1 −1 ui/jquery.ui.tooltip.js
@@ -22,6 +22,9 @@
width: 350px;
height: 350px;
}
+ .ui-tooltip {
+ max-width: 350px;
+ }
</style>
<script>
$(function() {
View
@@ -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,

0 comments on commit fbc0e6a

Please sign in to comment.