From ae57be6e4f36bf4d394afcf4be6e92113c763243 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Thu, 13 Aug 2015 13:01:13 +0930 Subject: [PATCH] Prevent badge tooltips from being cut off By overflow in the notifications dropdown. closes flarum/core#228 --- framework/core/js/lib/components/Badge.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/js/lib/components/Badge.js b/framework/core/js/lib/components/Badge.js index 142a1ef0a..8da355982 100644 --- a/framework/core/js/lib/components/Badge.js +++ b/framework/core/js/lib/components/Badge.js @@ -38,6 +38,6 @@ export default class Badge extends Component { config(isInitialized) { if (isInitialized) return; - if (this.props.label) this.$().tooltip(); + if (this.props.label) this.$().tooltip({container: 'body'}); } }