]> 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)
committerJörn Zaefferer <joern.zaefferer@gmail.com>
Mon, 5 Nov 2012 18:05:58 +0000 (19:05 +0100)
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 325e20efbae4089c24ccdffa66b83fc7597ef8a2..e996d0d4ed61655509d6c1856fdef022d8e9a28d 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,