From 3d5dfab54e313a6020d973e1b034889abc25038b Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Tue, 1 Mar 2016 12:48:40 -0500 Subject: [PATCH] FIX: Jump on mobile when cloaking --- app/assets/javascripts/discourse/widgets/post-stream.js.es6 | 2 +- app/assets/stylesheets/mobile/topic-post.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/widgets/post-stream.js.es6 b/app/assets/javascripts/discourse/widgets/post-stream.js.es6 index cae70576278..704b671f246 100644 --- a/app/assets/javascripts/discourse/widgets/post-stream.js.es6 +++ b/app/assets/javascripts/discourse/widgets/post-stream.js.es6 @@ -17,7 +17,7 @@ export function cloak(post, component) { if (!CLOAKING_ENABLED || _cloaked[post.id] || _dontCloak[post.id]) { return; } const $post = $(`#post_${post.post_number}`); - _cloaked[post.id] = $post.height(); + _cloaked[post.id] = $post.outerHeight(); Ember.run.debounce(component, 'queueRerender', 1000); } diff --git a/app/assets/stylesheets/mobile/topic-post.scss b/app/assets/stylesheets/mobile/topic-post.scss index 5b5c02021da..ac5adc6de8f 100644 --- a/app/assets/stylesheets/mobile/topic-post.scss +++ b/app/assets/stylesheets/mobile/topic-post.scss @@ -14,7 +14,7 @@ margin-top: 5px; } -.topic-post { +.topic-post article { border-top: 1px solid dark-light-diff($primary, $secondary, 90%, -60%); padding: 6px 0; }