Skip to content

A platform for community discussion. Free, open, simple.

FIX: Issue with incorrect heights when cloaking plugin content in posts

Robin Wardfb1da53dff8e
diff --git a/app/assets/javascripts/discourse/widgets/post-stream.js.es6 b/app/assets/javascripts/discourse/widgets/post-stream.js.es6
index 0515d8e3fe3..da059dc964f 100644
--- a/app/assets/javascripts/discourse/widgets/post-stream.js.es6
+++ b/app/assets/javascripts/discourse/widgets/post-stream.js.es6
@@ -34,7 +34,7 @@ export function cloak(post, component) {
return;
}
- const $post = $(`#post_${post.post_number}`);
+ const $post = $(`#post_${post.post_number}`).parent();
_cloaked[post.id] = true;
_heights[post.id] = $post.outerHeight();