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

правка для Bug #31087

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68830 954022d7-b5bf-4e40-9824-e11837661b57
parent 840cfe4c
......@@ -6445,10 +6445,24 @@ PasteProcessor.prototype =
}
//TODO пересмотреть! node.getAttribute("width") в FF возврашает "auto" -> изображения в FF не всталяются
if(AscBrowser.isMozilla && (!nWidth || !nHeight))
if((!nWidth || !nHeight))
{
nWidth = parseInt(node.width);
nHeight = parseInt(node.height);
if(AscBrowser.isMozilla)
{
nWidth = parseInt(node.width);
nHeight = parseInt(node.height);
}
else if(AscBrowser.isChrome)
{
if(nWidth && !nHeight)
{
nHeight = nWidth;
}
else if(!nWidth && nHeight)
{
nWidth = nHeight;
}
}
}
var sSrc = node.getAttribute("src");
......
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