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

Пересчет ParaDrawing при копировании строки в заголовок таблицы

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@68362 954022d7-b5bf-4e40-9824-e11837661b57
parent 9b2c8302
...@@ -1600,11 +1600,28 @@ CTable.prototype.private_RecalculatePage = function(CurPage) ...@@ -1600,11 +1600,28 @@ CTable.prototype.private_RecalculatePage = function(CurPage)
g_oTableId.m_bTurnOff = true; g_oTableId.m_bTurnOff = true;
History.TurnOff(); History.TurnOff();
var aContentDrawings = [];
for ( var Index = 0; Index < this.HeaderInfo.Count; Index++ ) for ( var Index = 0; Index < this.HeaderInfo.Count; Index++ )
{ {
HeaderPage.Rows[Index] = this.Content[Index].Copy(this); HeaderPage.Rows[Index] = this.Content[Index].Copy(this);
HeaderPage.Rows[Index].Index = Index; HeaderPage.Rows[Index].Index = Index;
for(var CellIndex = 0; CellIndex < HeaderPage.Rows[Index].Content.length; ++CellIndex)
{
HeaderPage.Rows[Index].Content[CellIndex].Content.Get_AllDrawingObjects(aContentDrawings);
}
} }
for(var DrawingIndex = 0; DrawingIndex < aContentDrawings.length; ++DrawingIndex)
{
if(aContentDrawings[DrawingIndex] && aContentDrawings[DrawingIndex].GraphicObj)
{
aContentDrawings[DrawingIndex].GraphicObj.recalculate();
if(aContentDrawings[DrawingIndex].GraphicObj.recalculateText)
{
aContentDrawings[DrawingIndex].GraphicObj.recalculateText();
}
}
}
g_oTableId.m_bTurnOff = false; g_oTableId.m_bTurnOff = false;
History.TurnOn(); History.TurnOn();
......
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