Skip to content

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

FIX: Get correct right/left offset for topic progress bar on compose

Kris7429512ced58
diff --git a/app/assets/javascripts/discourse/app/components/topic-progress.js b/app/assets/javascripts/discourse/app/components/topic-progress.js
index 3f927bd78c3..bf0f5cb3bf7 100644
--- a/app/assets/javascripts/discourse/app/components/topic-progress.js
+++ b/app/assets/javascripts/discourse/app/components/topic-progress.js
@@ -180,7 +180,7 @@ export default Component.extend({
this.set("docked", isDocked);
const $replyArea = $("#reply-control .reply-area");
- if ($replyArea && $replyArea.length > 0 && wrapperDir === "left") {
+ if ($replyArea && $replyArea.length > 0) {
$wrapper.css(wrapperDir, `${$replyArea.offset().left}px`);
} else {
$wrapper.css(wrapperDir, "1em");