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.
  • Loading branch information...
1 parent 98173a3 commit 1d9eab1ead0d5a6f60e31437bb539eb3f804bacc @jzaefferer jzaefferer committed 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,

1 comment on commit 1d9eab1

Owner

Didn't run tests, huh?

Please sign in to comment.