fix quickreply when recorded position is <0
This commit is contained in:
parent
3af05ed55b
commit
8164d03704
@ -301,6 +301,8 @@ var show_quick_reply = function(){
|
|||||||
if (typeof $postForm.draggable != 'undefined') {
|
if (typeof $postForm.draggable != 'undefined') {
|
||||||
if (localStorage.quickReplyPosition) {
|
if (localStorage.quickReplyPosition) {
|
||||||
var offset = JSON.parse(localStorage.quickReplyPosition);
|
var offset = JSON.parse(localStorage.quickReplyPosition);
|
||||||
|
if (offset.top < 0)
|
||||||
|
offset.top = 10;
|
||||||
if (offset.right > $(window).width() - $postForm.width())
|
if (offset.right > $(window).width() - $postForm.width())
|
||||||
offset.right = $(window).width() - $postForm.width();
|
offset.right = $(window).width() - $postForm.width();
|
||||||
if (offset.top > $(window).height() - $postForm.height())
|
if (offset.top > $(window).height() - $postForm.height())
|
||||||
|
Loading…
Reference in New Issue
Block a user