Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Jörn Zaefferer jzaefferer authored
3  demos/tooltip/custom-content.html
@@ -22,6 +22,9 @@
22 22 width: 350px;
23 23 height: 350px;
24 24 }
  25 + .ui-tooltip {
  26 + max-width: 350px;
  27 + }
25 28 </style>
26 29 <script>
27 30 $(function() {
2  ui/jquery.ui.tooltip.js
@@ -54,7 +54,7 @@ $.widget( "ui.tooltip", {
54 54 position: {
55 55 my: "left top+15",
56 56 at: "left bottom",
57   - collision: "flipfit flipfit"
  57 + collision: "flipfit flip"
58 58 },
59 59 show: true,
60 60 tooltipClass: null,

1 comment on commit 1d9eab1

Scott González

Didn't run tests, huh?

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