Skip to content

Commit

Permalink
Tooltip: Make 'flipfit flip' the collision default to avoid the toolt…
Browse files Browse the repository at this point in the history
…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 1d9eab1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions demos/tooltip/custom-content.html
Expand Up @@ -22,6 +22,9 @@
width: 350px;
height: 350px;
}
.ui-tooltip {
max-width: 350px;
}
</style>
<script>
$(function() {
Expand Down
2 changes: 1 addition & 1 deletion ui/jquery.ui.tooltip.js
Expand Up @@ -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,
Expand Down

1 comment on commit 1d9eab1

@scottgonzalez
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't run tests, huh?

Please sign in to comment.