Commit 1bde183f authored by Alexey.Musinov's avatar Alexey.Musinov Committed by Alexander.Trofimov

offlineMode: при добавлении картинки, указываем размеры изображения

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@47971 954022d7-b5bf-4e40-9824-e11837661b57
parent 74139de2
...@@ -2501,7 +2501,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -2501,7 +2501,7 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
} }
if (!window['scriptBridge']['addFileImage']) { if (!window['scriptBridge']['addFileImage']) {
window['scriptBridge']['addFileImage'] = function(imageUrl, x, y) { window['scriptBridge']['addFileImage'] = function(imageUrl, x, y, width, height) {
t.wb.controller.isSelectDrawingObject = true; t.wb.controller.isSelectDrawingObject = true;
var ws = t.wb.getWorksheet(); var ws = t.wb.getWorksheet();
...@@ -2510,8 +2510,8 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS"; ...@@ -2510,8 +2510,8 @@ var ASC_DOCS_API_USE_EMBEDDED_FONTS = "@@ASC_DOCS_API_USE_EMBEDDED_FONTS";
var options = null; var options = null;
if (x && y) { if (x && y) {
var picker = ws.objectRender.getPositionInfo(x,y); var picker = ws.objectRender.getPositionInfo(x,y);
options = {cell: {col: picker.col, row: picker.row}}; options = {cell: {col: picker.col, row: picker.row}, width: width, height: height};
console.log(picker); // console.log(picker);
} }
ws.objectRender.addImageDrawingObject(imageUrl, false, options); ws.objectRender.addImageDrawingObject(imageUrl, false, options);
......
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