Mercurial > kallithea
changeset 6835:2f35bd7b97aa
js: use body as container for Bootstrap tooltips
Under some circumstances, the floating of the elements gets altered, if the
tooltip elements gets put next to the source element. Therefore use body as the
container.
author | domruf <dominikruf@gmail.com> |
---|---|
date | Tue, 18 Jul 2017 20:50:49 +0200 |
parents | 19f40a5088d4 |
children | 01c216ba7e37 |
files | kallithea/public/js/base.js |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/public/js/base.js Tue Jun 27 21:49:33 2017 +0200 +++ b/kallithea/public/js/base.js Tue Jul 18 20:50:49 2017 +0200 @@ -490,6 +490,7 @@ } $(document).ready(function(){ $('[data-toggle="tooltip"]').tooltip({ + container: 'body', placement: placement }); $('[data-toggle="popover"]').popover({