From cb3d9dfe8310a94a7b742ed62e088d64e93baba3 Mon Sep 17 00:00:00 2001 From: Mark Otto Date: Sun, 15 Dec 2013 11:44:16 -0800 Subject: [PATCH] Fixes #11833: add warning to docs for popover multiple line positioning; update it's docs with example markup, too --- javascript.html | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/javascript.html b/javascript.html index ee83242454..76c9807ebf 100644 --- a/javascript.html +++ b/javascript.html @@ -906,8 +906,11 @@ $('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { {% highlight html %} + + + {% endhighlight %} @@ -1170,6 +1173,29 @@ $('#myTooltip').on('hidden.bs.tooltip', function () { +{% highlight html %} + + + + + + + +{% endhighlight %} + +
+

Multiple-line links

+

Sometimes you want to add a tooltip to a hyperlink that wraps multiple lines. The default behavior of the tooltip plugin is to center it horizontally and vertically. Add white-space: nowrap; to your anchors to avoid this.

+

Usage