Commit 14e8577f authored by Oleg Korshul's avatar Oleg Korshul

.

parent 6d63beed
...@@ -94,6 +94,12 @@ var GlobalSkinFlat = { ...@@ -94,6 +94,12 @@ var GlobalSkinFlat = {
}; };
var GlobalSkin = GlobalSkinFlat; var GlobalSkin = GlobalSkinFlat;
if (AscCommon.TEMP_STYLE_THUMBNAIL_WIDTH !== undefined && AscCommon.TEMP_STYLE_THUMBNAIL_HEIGHT !== undefined)
{
// TODO: переделать.
AscCommonWord.GlobalSkin.STYLE_THUMBNAIL_WIDTH = AscCommon.TEMP_STYLE_THUMBNAIL_WIDTH;
AscCommonWord.GlobalSkin.STYLE_THUMBNAIL_HEIGHT = AscCommon.TEMP_STYLE_THUMBNAIL_HEIGHT;
}
function updateGlobalSkin(newSkin) function updateGlobalSkin(newSkin)
{ {
......
...@@ -8465,8 +8465,16 @@ background-repeat: no-repeat;\ ...@@ -8465,8 +8465,16 @@ background-repeat: no-repeat;\
}; };
window["asc_docs_api"].prototype["asc_setParagraphStylesSizes"] = function(width, height) window["asc_docs_api"].prototype["asc_setParagraphStylesSizes"] = function(width, height)
{ {
AscCommonWord.GlobalSkin.STYLE_THUMBNAIL_WIDTH = width; if (window["AscCommonWord"] && window["AscCommonWord"].GlobalSkin)
AscCommonWord.GlobalSkin.STYLE_THUMBNAIL_HEIGHT = height; {
AscCommonWord.GlobalSkin.STYLE_THUMBNAIL_WIDTH = width;
AscCommonWord.GlobalSkin.STYLE_THUMBNAIL_HEIGHT = height;
}
else
{
AscCommon.TEMP_STYLE_THUMBNAIL_WIDTH = width;
AscCommon.TEMP_STYLE_THUMBNAIL_HEIGHT = height;
}
}; };
// desktop editor spellcheck // desktop editor spellcheck
......
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