From c8146eb783c349517b60c7df24ddb9e1d56c1e20 Mon Sep 17 00:00:00 2001 From: Jeff Becker Date: Mon, 16 Jan 2017 14:41:24 -0500 Subject: [PATCH] more --- contrib/js/nntpchan/post-reply.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/js/nntpchan/post-reply.js b/contrib/js/nntpchan/post-reply.js index c212c3a..568db7c 100644 --- a/contrib/js/nntpchan/post-reply.js +++ b/contrib/js/nntpchan/post-reply.js @@ -88,6 +88,8 @@ function ReplyBox() { table.appendChild(tbody); this.elem.appendChild(table); document.body.appendChild(this.elem); + $(this.elem).css("position", "fixed"); + $(this.elem).css("display", "none"); this._open = false; } @@ -139,8 +141,7 @@ ReplyBox.prototype.show = function(info) { self.reload(); self._open = true; console.log("reply box show for "+info.reference); - $(self.elem).css("display", "inline-block"); - $(self.elem).css("position", "fixed"); + var off = $(info.elem).offset(); $(self.elem).offset({ top: off.top,