Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 1d9eab1ead0d5a6f60e31437bb539eb3f804bacc 1 parent 98173a3
@jzaefferer jzaefferer authored
Showing with 4 additions and 1 deletion.
  1. +3 −0  demos/tooltip/custom-content.html
  2. +1 −1  ui/jquery.ui.tooltip.js
View
3  demos/tooltip/custom-content.html
@@ -22,6 +22,9 @@
width: 350px;
height: 350px;
}
+ .ui-tooltip {
+ max-width: 350px;
+ }
</style>
<script>
$(function() {
View
2  ui/jquery.ui.tooltip.js
@@ -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

Didn't run tests, huh?

Please sign in to comment.
Something went wrong with that request. Please try again.