Commit 7ea075cb authored by Van's avatar Van
parent b62e4748
......@@ -27,7 +27,7 @@ var soloKanbanniang = {
}
var dialog = this;
var x = event.clientX - parseInt(dialog.style.left || 0),
y = event.clientY - parseInt(dialog.style.top || 0);
y = event.clientY - parseInt(dialog.style.top || $(window).height() - $(dialog).height());
_document.ondragstart = "return false;";
_document.onselectstart = "return false;";
_document.onselect = "document.selection.empty();";
......@@ -53,8 +53,8 @@ var soloKanbanniang = {
if (positionY < 0) {
positionY = 0;
}
if (positionY > $('html').height() - $(dialog).height()) {
positionY = $('html').height() - $(dialog).height();
if (positionY > $(window).height() - $(dialog).height()) {
positionY = $(window).height() - $(dialog).height();
}
dialog.style.left = positionX + "px";
dialog.style.top = positionY + "px";
......
Subproject commit 982110525f6206c41045dd758d72f9263e9822fe
Subproject commit c2c29ee93631faf3b69292de03345cc8740e5b8c
====
Solo - A small and beautiful blogging system written in Java.
Copyright (c) 2010-2018, b3log.org & hacpai.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
====
User-agent: *
Disallow: /*.do
Disallow: /login
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment