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

откатил к ширине элемента selectId = '10000px'

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@56904 954022d7-b5bf-4e40-9824-e11837661b57
parent f0ac0416
......@@ -64,12 +64,7 @@ function Editor_Copy_GetElem(api)
//style.left = 0px, ���� ������� ���������� ������ ������� ������� ����, �� ����� ������� ������ �������� �����, �� � ����������� ����(� iframe) ������� ������������� � ����� ������ ��� ����� ������� ������ ����������.
ElemToSelect.style.left = '0px';
ElemToSelect.style.top = '-100px';
if(window.USER_AGENT_MACOS)
ElemToSelect.style.width = '100px';
else
ElemToSelect.style.width = '10000px';
ElemToSelect.style.width = '10000px';
ElemToSelect.style.height = '100px';
ElemToSelect.style.overflow = 'hidden';
ElemToSelect.style.zIndex = -1000;
......@@ -205,9 +200,6 @@ function Editor_Copy(api, bCut)
//������� ������� ����� ����������� ����������
var ElemToSelect = Editor_Copy_GetElem(api);
ElemToSelect.style.display = "block";
if(window.USER_AGENT_MACOS)
ElemToSelect.style.width = "10000px";
while ( ElemToSelect.hasChildNodes() )
ElemToSelect.removeChild( ElemToSelect.lastChild );
......@@ -219,9 +211,6 @@ function Editor_Copy(api, bCut)
delete document.body.style["user-select"];
document.body.style["-webkit-user-select"] = "text";
var overflowBody = document.body.style.overflow;
document.body.style.overflow = 'hidden';
ElemToSelect.style.MozUserSelect = "all";
if (null != api.WordControl.m_oLogicDocument)
......@@ -297,8 +286,6 @@ function Editor_Copy(api, bCut)
document.body.style["user-select"] = "none";
document.body.style["-webkit-user-select"] = "none";
document.body.style.overflow = overflowBody;
ElemToSelect.style.MozUserSelect = "none";
if(true == bCut)
......@@ -308,10 +295,6 @@ function Editor_Copy(api, bCut)
api.WordControl.m_oLogicDocument.Document_UpdateSelectionState();
}
}, time_interval);
if(window.USER_AGENT_MACOS)
ElemToSelect.style.width = "100px";
/*
if (e.dataTransfer)
{
......@@ -2155,12 +2138,7 @@ function Editor_Paste_GetElem(api, bClean)
pastebin.style.top = '-100px';
pastebin.style.left = '0px';
if(window.USER_AGENT_MACOS)
pastebin.style.width = "10000px";
else
pastebin.style.width = "100px";
pastebin.style.width = '10000px';
pastebin.style.height = '100px';
pastebin.style.overflow = 'hidden';
pastebin.style.zIndex = -1000;
......@@ -2314,19 +2292,11 @@ function Editor_Paste(api, bClean)
delete document.body.style["-o-user-select"];
delete document.body.style["user-select"];
document.body.style["-webkit-user-select"] = "text";
var overflowBody = document.body.style.overflow;
document.body.style.overflow = 'hidden';
var Text;
var pastebin = Editor_Paste_GetElem(api, bClean);
pastebin.style.display = "block";
if(window.USER_AGENT_MACOS)
pastebin.style.width = "10000px";
pastebin.focus();
pastebin.focus();
// Safari requires a filler node inside the div to have the content pasted into it. (#4882)
pastebin.appendChild( document.createTextNode( '\xa0' ) );
......@@ -2379,8 +2349,6 @@ function Editor_Paste(api, bClean)
document.body.style["-o-user-select"] = "none";
document.body.style["user-select"] = "none";
document.body.style["-webkit-user-select"] = "none";
document.body.style.overflow = overflowBody;
if (!window.USER_AGENT_SAFARI_MACOS)
pastebin.onpaste = null;
......@@ -2393,9 +2361,6 @@ function Editor_Paste(api, bClean)
pastebin.style.display = ELEMENT_DISPAY_STYLE;
window.PasteEndTimerId = -1;
if(window.USER_AGENT_MACOS)
pastebin.style.width = "100px";
};
var _interval_time = window.USER_AGENT_MACOS ? 200 : 0;
......@@ -2439,12 +2404,7 @@ function Body_Paste(api, e)
ifr.style.position = 'absolute';
ifr.style.top = '-100px';
ifr.style.left = '0px';
if(window.USER_AGENT_MACOS)
ifr.style.width = '100px';
else
ifr.style.width = '10000px';
ifr.style.width = '10000px';
ifr.style.height = '100px';
ifr.style.overflow = 'hidden';
ifr.style.zIndex = -1000;
......@@ -6860,12 +6820,7 @@ function Editor_CopyPaste_Create(api)
ElemToSelect.style.left = '0px';
ElemToSelect.style.top = '-100px';
if(window.USER_AGENT_MACOS)
ElemToSelect.style.width = '100px';
else
ElemToSelect.style.width = '10000px';
ElemToSelect.style.width = '10000px';
ElemToSelect.style.height = '100px';
ElemToSelect.style.overflow = 'hidden';
ElemToSelect.style.zIndex = -1000;
......
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