Fix the problem with adding a fixed form inside the complex form
This commit is contained in:
KirillovIlya
2023-01-11 22:20:56 +03:00
parent 3d5237c5ed
commit 13dd617208

14
api.js
View File

@ -437,12 +437,14 @@ window["AscOForm"] = window.AscOForm = AscOForm;
{
logicDocument.Recalculate(true);
let drawing = form.ConvertFormToFixed();
let drawingPr = new Asc.asc_CImgProperty();
drawingPr.asc_putWrappingStyle(Asc.c_oAscWrapStyle2.Square);
drawing.Set_Props(drawingPr);
form.MoveCursorToContentControl(false);
if (drawing)
{
let drawingPr = new Asc.asc_CImgProperty();
drawingPr.asc_putWrappingStyle(Asc.c_oAscWrapStyle2.Square);
drawing.Set_Props(drawingPr);
form.MoveCursorToContentControl(false);
}
}
}