From 7ab1eb4f6433d1d5564db38e20c7f1650323ebc5 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Wed, 16 Sep 2015 14:43:48 +0930 Subject: [PATCH] Move post previews outside of .Post-body so they don't get clipped --- .../mentions/js/forum/src/addPostMentionPreviews.js | 11 +++++++---- extensions/mentions/less/forum/extension.less | 1 + 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/extensions/mentions/js/forum/src/addPostMentionPreviews.js b/extensions/mentions/js/forum/src/addPostMentionPreviews.js index 96e483c83..63c4a109e 100644 --- a/extensions/mentions/js/forum/src/addPostMentionPreviews.js +++ b/extensions/mentions/js/forum/src/addPostMentionPreviews.js @@ -12,6 +12,7 @@ export default function addPostMentionPreviews() { this.oldPostContentHtml = contentHtml; const parentPost = this.props.post; + const $parentPost = this.$(); this.$('.UserMention, .PostMention').each(function() { m.route.call(this, this, false, {}, {attrs: {href: this.getAttribute('href')}}); @@ -25,8 +26,7 @@ export default function addPostMentionPreviews() { // Wrap the mention link in a wrapper element so that we can insert a // preview popup as its sibling and relatively position it. const $preview = $('