Commit 32199574 authored by Igor.Zotov's avatar Igor.Zotov Committed by Alexander.Trofimov

убрал полосу прокрутки в IE при copy/paste

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57710 954022d7-b5bf-4e40-9824-e11837661b57
parent cd5b855a
...@@ -398,7 +398,9 @@ ...@@ -398,7 +398,9 @@
} }
} }
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();
...@@ -424,6 +426,8 @@ ...@@ -424,6 +426,8 @@
// ждем выполнения copy // ждем выполнения copy
window.setTimeout( window.setTimeout(
function() { function() {
document.body.style.overflow = overflowBody;
// отменяем возможность выделения // отменяем возможность выделения
t.element.style.display = "none"; t.element.style.display = "none";
doc.body.style.MozUserSelect = "none"; doc.body.style.MozUserSelect = "none";
......
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