Commit 4cf36f62 authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Bug 25455 - Не рисовать краные кресты для картинок в момент открытия таблицы.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@57368 954022d7-b5bf-4e40-9824-e11837661b57
parent f0b82f97
...@@ -1724,25 +1724,34 @@ function DrawingObjects() { ...@@ -1724,25 +1724,34 @@ function DrawingObjects() {
drawingObject.graphicObject.drawingObjects = _this; drawingObject.graphicObject.drawingObjects = _this;
drawingObject.graphicObject.getAllRasterImages(aImagesSync); drawingObject.graphicObject.getAllRasterImages(aImagesSync);
} }
_this.recalculate(true);
for(i = 0; i < aImagesSync.length; ++i) for(i = 0; i < aImagesSync.length; ++i)
{ {
aImagesSync[i] = getFullImageSrc(aImagesSync[i]); aImagesSync[i] = getFullImageSrc(aImagesSync[i]);
} }
// Загружаем все картинки листа
_this.asyncImagesDocumentEndLoaded = function()
{
_this.showDrawingObjects(true);
};
if(aImagesSync.length > 0)
{
var old_val = api.ImageLoader.bIsAsyncLoadDocumentImages;
api.ImageLoader.bIsAsyncLoadDocumentImages = true;
api.ImageLoader.LoadDocumentImages(aImagesSync, null);
api.ImageLoader.bIsAsyncLoadDocumentImages = old_val;
}
_this.recalculate(true);
for (i = 0; i < currentSheet.model.Drawings.length; ++i) for (i = 0; i < currentSheet.model.Drawings.length; ++i)
{ {
var boundsChecker = _this.getBoundsChecker(drawingObject.graphicObject); var boundsChecker = _this.getBoundsChecker(drawingObject.graphicObject);
aBoundsCheckers.push(boundsChecker); aBoundsCheckers.push(boundsChecker);
} }
// Загружаем все картинки листа
_this.asyncImagesDocumentEndLoaded = function() {
_this.showDrawingObjects(true);
};
if(aImagesSync.length > 0)
api.ImageLoader.LoadDocumentImages(aImagesSync, null, _this.asyncImagesDocumentEndLoaded);
// Upload event // Upload event
if (window.addEventListener) { if (window.addEventListener) {
......
...@@ -2753,6 +2753,8 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -2753,6 +2753,8 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
}, },
asyncImageEndLoadedBackground: function() { asyncImageEndLoadedBackground: function() {
var worksheet = this.wb.getWorksheet();
worksheet && worksheet.objectRender.showDrawingObjects(false, new GraphicOption(worksheet, c_oAscGraphicOption.ScrollVertical, worksheet.getVisibleRange(), null, {offsetX: 0, offsetY: 0}));
}, },
// Frozen pane // Frozen pane
......
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