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

This commit is contained in:
Kris 2020-06-12 18:44:42 -04:00
parent 16b41aa485
commit 7429512ced

View File

@ -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");