Commit 180462b3 authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov
parent 0890d296
...@@ -764,6 +764,9 @@ ...@@ -764,6 +764,9 @@
delete document.body.style["user-select"]; delete document.body.style["user-select"];
document.body.style["-webkit-user-select"] = "text"; document.body.style["-webkit-user-select"] = "text";
var overflowBody = document.body.style.overflow;
document.body.style.overflow = 'hidden';
var Text; var Text;
var pastebin = t._editorPasteGetElem(worksheet,true); var pastebin = t._editorPasteGetElem(worksheet,true);
pastebin.style.display = "block"; pastebin.style.display = "block";
...@@ -822,6 +825,8 @@ ...@@ -822,6 +825,8 @@
document.body.style["user-select"] = "none"; document.body.style["user-select"] = "none";
document.body.style["-webkit-user-select"] = "none"; document.body.style["-webkit-user-select"] = "none";
document.body.style.overflow = overflowBody;
if(!isTruePaste) if(!isTruePaste)
t._editorPasteExec(worksheet, pastebin); t._editorPasteExec(worksheet, pastebin);
...@@ -2314,7 +2319,10 @@ ...@@ -2314,7 +2319,10 @@
}, },
_selectElement: function (callback) { _selectElement: function (callback) {
var t = this, selection, rangeToSelect; var t = this, selection, rangeToSelect, overflowBody;
overflowBody = document.body.style.overflow;
document.body.style.overflow = 'hidden';
if (window.getSelection) {// all browsers, except IE before version 9 if (window.getSelection) {// all browsers, except IE before version 9
selection = window.getSelection(); selection = window.getSelection();
...@@ -2357,6 +2365,8 @@ ...@@ -2357,6 +2365,8 @@
t.element.style.MozUserSelect = "none"; t.element.style.MozUserSelect = "none";
document.body.style.overflow = overflowBody;
// for paste event // for paste event
if (callback && callback.call) {callback();} if (callback && callback.call) {callback();}
}, },
......
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