From edb221a20ceabebd427e27d0432e94a227717217 Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Fri, 22 Nov 2013 11:58:53 -0800 Subject: Add tooltip `viewport` option, respect bounds of the viewport --- docs/javascript.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'docs') diff --git a/docs/javascript.html b/docs/javascript.html index d7035d661..9961a2851 100644 --- a/docs/javascript.html +++ b/docs/javascript.html @@ -1027,6 +1027,22 @@ $('#example').tooltip(options)

Appends the tooltip to a specific element. Example: container: 'body'

+ + viewport + string + 'body' + +

Keeps the tooltip within the bounds of this element. Example: viewport: '#viewport'

+ + + + viewportPadding + number + 0 + +

Pixel distance to keep the tooltip from the edges of the viewport element. Example: viewportPadding: 10

+ + -- cgit v1.2.3