From 8164d0370456a4604f250c05aedb6feea452633d Mon Sep 17 00:00:00 2001 From: czaks Date: Tue, 17 Sep 2013 18:15:59 -0400 Subject: [PATCH] fix quickreply when recorded position is <0 --- js/quick-reply.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/quick-reply.js b/js/quick-reply.js index ea56b984..b87b5050 100644 --- a/js/quick-reply.js +++ b/js/quick-reply.js @@ -301,6 +301,8 @@ var show_quick_reply = function(){ if (typeof $postForm.draggable != 'undefined') { if (localStorage.quickReplyPosition) { var offset = JSON.parse(localStorage.quickReplyPosition); + if (offset.top < 0) + offset.top = 10; if (offset.right > $(window).width() - $postForm.width()) offset.right = $(window).width() - $postForm.width(); if (offset.top > $(window).height() - $postForm.height())