diff --git a/demos/tooltip/delegation-mixbag.html b/demos/tooltip/delegation-mixbag.html index 9c524dabea..720071c878 100644 --- a/demos/tooltip/delegation-mixbag.html +++ b/demos/tooltip/delegation-mixbag.html @@ -1,62 +1,80 @@ + jQuery UI Tooltip - Default demo - - - - - - - - + + + + + + + -
- - - - - -
-
This is the footnote, including other elements
-
This is the other footnote, including other elements
+ +
+
+

St. Stephen's Cathedral

+

Vienna, Austria.

+ + St. Stephen's Cathedral + +
+ +
+
+

Tower Bridge

+

London, England.

+
+ + Tower Bridge + +
+ +

All images are part of Wikimedia Commons +and are licensed under CC BY-SA 3.0 by the copyright holder.

+
diff --git a/tests/unit/tooltip/tooltip_defaults.js b/tests/unit/tooltip/tooltip_defaults.js index 13daaeb679..ded3d45585 100644 --- a/tests/unit/tooltip/tooltip_defaults.js +++ b/tests/unit/tooltip/tooltip_defaults.js @@ -5,7 +5,8 @@ commonWidgetTests( "tooltip", { items: "[title]", position: { my: "left+15 center", - at: "right center" + at: "right center", + collision: "flip fit" }, tooltipClass: null, diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js index 279db69fa9..c8d892d388 100644 --- a/ui/jquery.ui.tooltip.js +++ b/ui/jquery.ui.tooltip.js @@ -25,7 +25,8 @@ $.widget( "ui.tooltip", { items: "[title]", position: { my: "left+15 center", - at: "right center" + at: "right center", + collision: "flip fit" }, tooltipClass: null },