Skip to content

Commit

Permalink
Merge branch 'document-tooltip-flickering' of https://github.com/simP…
Browse files Browse the repository at this point in the history
…od/bootstrap into simPod-document-tooltip-flickering
  • Loading branch information
mdo committed Jul 20, 2018
2 parents 6f52b2e + a4b2e39 commit 23e4d48
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions site/docs/4.1/components/tooltips.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,17 @@ Trigger the tooltip via JavaScript:
$('#example').tooltip(options)
{% endhighlight %}

{% capture callout %}
##### Overflow `auto` and `scroll`

Tooltip position attempts to automatically change when a parent container has `overflow: auto` or `overflow: scroll` like our `.table-responsive`, but still keeps the original placement's positioning. To resolve, set the `boundary` option to anything other than default value, `'scrollParent'`, such as `'window'`:

{% highlight js %}
$('#example').tooltip({ boundary: 'window' })
{% endhighlight %}
{% endcapture %}
{% include callout.html content=callout type="warning" %}

### Markup

The required markup for a tooltip is only a `data` attribute and `title` on the HTML element you wish to have a tooltip. The generated markup of a tooltip is rather simple, though it does require a position (by default, set to `top` by the plugin).
Expand Down

0 comments on commit 23e4d48

Please sign in to comment.