Skip to content
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
jzaefferer committed Nov 5, 2012
1 parent 98173a3 commit 1d9eab1ead0d5a6f60e31437bb539eb3f804bacc
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() {
@@ -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

@scottgonzalez

This comment has been minimized.

Copy link
Member

@scottgonzalez scottgonzalez commented on 1d9eab1 Nov 5, 2012

Didn't run tests, huh?

Please sign in to comment.
You can’t perform that action at this time.