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

http://bugzserver/show_bug.cgi?id=24894 - Копирование из строки формул с...

http://bugzserver/show_bug.cgi?id=24894 -  Копирование из строки формул с использованием горячих клавиш работает некорректно под Firefox

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57660 954022d7-b5bf-4e40-9824-e11837661b57
parent 170d6035
......@@ -574,7 +574,7 @@
t.element.appendChild(node);
});
if(AscBrowser.isMozilla)
t._selectElement(t._getStylesSelect);
t._selectElement(t._getStylesSelect, true);
else
t._selectElement();
......@@ -2443,11 +2443,17 @@
return false;
},
_selectElement: function (callback) {
var t = this, selection, rangeToSelect, overflowBody;
_selectElement: function (callback, copyCellValue) {
var t = this, selection, rangeToSelect, overflowBody, firstWidth;
overflowBody = document.body.style.overflow;
document.body.style.overflow = 'hidden';
if(copyCellValue)
{
firstWidth = t.element.style.width;
t.element.style.width = document.body.offsetWidth - 1 + "px";
}
else
document.body.style.overflow = 'hidden';
this._startCopyOrPaste();
......@@ -2493,6 +2499,8 @@
t._endCopyOrPaste();
t.element.style.MozUserSelect = "none";
if(firstWidth)
t.element.style.width = firstWidth;
document.body.style.overflow = overflowBody;
// for paste event
......
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