1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-19 20:23:17 +01:00

fix quickreply when recorded position is <0

This commit is contained in:
czaks 2013-09-17 18:15:59 -04:00
parent b9f1029192
commit 0855d00bcc

View File

@ -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())