]> source.dussan.org Git - jquery-ui.git/commitdiff
Tooltip: Make 'flipfit flip' the collision default to avoid the tooltip ever overlapp...
authorJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 5 Nov 2012 18:05:58 +0000 (19:05 +0100)
committerScott González <scott.gonzalez@gmail.com>
Tue, 13 Nov 2012 15:46:00 +0000 (10:46 -0500)
(cherry picked from commit 1d9eab1ead0d5a6f60e31437bb539eb3f804bacc)

demos/tooltip/custom-content.html
ui/jquery.ui.tooltip.js

index 93172524ad39127ed7062f73a7c6a5f0b05de782..20039e2b8301705b43fb50622623a3e265f09832 100644 (file)
@@ -22,6 +22,9 @@
                width: 350px;
                height: 350px;
        }
+       .ui-tooltip {
+               max-width: 350px;
+       }
        </style>
        <script>
        $(function() {
index 482ce21204163c716d6983e8947878a4a1732b7e..34c9b1a1ad3acf20675e59a7c08e087e74762756 100644 (file)
@@ -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,