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

Bug 30258 - [Textart] Не подстраивается рамка после изменения направления текста

Bug 30256 - [TextArt] Не обновляется рамка при cut&paste текста

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64548 954022d7-b5bf-4e40-9824-e11837661b57
parent 3daaa4e4
......@@ -1227,6 +1227,7 @@ CShape.prototype =
}
}
}
this.checkExtentsByDocContent && this.checkExtentsByDocContent();
},
setPaddings: function (paddings) {
......
......@@ -2582,7 +2582,12 @@ PasteProcessor.prototype =
return;
oDoc.Insert_Content(oSelectedContent, NearPos);
if(this.oLogicDocument && this.oLogicDocument.DrawingObjects)
{
var oTargetTextObject = getTargetTextObject(this.oLogicDocument.DrawingObjects);
oTargetTextObject && oTargetTextObject.checkExtentsByDocContent && oTargetTextObject.checkExtentsByDocContent();
}
this._selectShapesBeforeInsert(aNewContent, oDoc);
paragraph.Clear_NearestPosArray(aNewContent);
......
......@@ -2036,7 +2036,8 @@
worksheet._loadFonts(newFonts, function () {
oPasteProcessor.InsertInPlace(targetContent , oPasteProcessor.aContent);
var oTargetTextObject = getTargetTextObject(worksheet.objectRender.controller);
oTargetTextObject && oTargetTextObject.checkExtentsByDocContent && oTargetTextObject.checkExtentsByDocContent();
worksheet.objectRender.controller.startRecalculate();
worksheet.objectRender.controller.cursorMoveRight(false, false);
window.GlobalPasteFlag = false;
......
......@@ -3350,6 +3350,8 @@ CPresentation.prototype =
paragraph.Check_NearestPos(NearPos);
target_doc_content.Insert_Content(Content.DocContent, NearPos);
}
var oTargetTextObject = getTargetTextObject(this.Slides[this.CurPage].graphicObjects);
oTargetTextObject && oTargetTextObject.checkExtentsByDocContent && oTargetTextObject.checkExtentsByDocContent();
}
else
{
......
......@@ -2245,6 +2245,8 @@ CGraphicObjects.prototype =
if(content)
{
content.Remove(Count, bOnlyText, bRemoveOnlySelection, bOnTextAdd);
var oTargetTextObject = getTargetTextObject(this);
oTargetTextObject && oTargetTextObject.checkExtentsByDocContent && oTargetTextObject.checkExtentsByDocContent();
this.document.Recalculate();
}
else if(this.selectedObjects.length > 0)
......
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