From b8ec40c35f69a7a5b2ca828feb44dec400d5c9ef Mon Sep 17 00:00:00 2001 From: Zachary Chai Date: Thu, 17 Nov 2016 17:16:57 -0500 Subject: [PATCH] use body as container for tooltips --- app/assets/javascripts/landing.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/landing.js b/app/assets/javascripts/landing.js index 8c81fd21..335b510b 100644 --- a/app/assets/javascripts/landing.js +++ b/app/assets/javascripts/landing.js @@ -96,11 +96,13 @@ // enable tooltips var options = { - selector: '.has-tooltip' + selector: '.has-tooltip', + container: 'body' }; $(document).tooltip(options) var options = { selector: '.bottom-tooltip', + container: 'body', placement: 'bottom' }; $(document).tooltip(options); @@ -108,6 +110,7 @@ // enable popovers var options = { selector: '.has-popover', + container: 'body', html: true, trigger: 'focus', title: function() {