diff options
| author | czaks <marcin@6irc.net> | 2013-09-17 18:15:59 -0400 |
|---|---|---|
| committer | czaks <marcin@6irc.net> | 2013-09-17 18:15:59 -0400 |
| commit | 8164d0370456a4604f250c05aedb6feea452633d (patch) | |
| tree | 58bd5ee15be2881180719be2dbe4a8602515abe8 /js | |
| parent | 3af05ed55b4c750da5c7efb23dad2141c18bbae2 (diff) | |
fix quickreply when recorded position is <0
Diffstat (limited to 'js')
| -rw-r--r-- | js/quick-reply.js | 2 |
1 files changed, 2 insertions, 0 deletions
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()) |
