Commit 675769c7 authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

Исправлен баг с определением границ страницы у ячейки таблицы (баг 28283).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@64687 954022d7-b5bf-4e40-9824-e11837661b57
parent 5c2f7482
......@@ -1354,6 +1354,7 @@ CDocumentContent.prototype =
return this.Pages[0].Bounds;
var Bounds = this.Pages[PageNum].Bounds;
var PageNumAbs = PageNum + this.Get_StartPage_Absolute();
// В колонтитуле не учитывается.
if ( true != this.Is_HdrFtr(false) || true === bForceCheckDrawings )
......@@ -1366,18 +1367,21 @@ CDocumentContent.prototype =
for ( var Index = 0; Index < Count; Index++ )
{
var Obj = AllDrawingObjects[Index];
var ObjBounds = Obj.Get_Bounds();
if (true === Obj.Use_TextWrap())
if (PageNumAbs === Obj.Get_PageNum())
{
if (ObjBounds.Bottom > Bounds.Bottom)
Bounds.Bottom = ObjBounds.Bottom;
}
else if (undefined !== Height && ObjBounds.Top < this.Y + Height)
{
if (ObjBounds.Bottom >= this.Y + Height)
Bounds.Bottom = this.Y + Height;
else if (ObjBounds.Bottom > Bounds.Bottom)
Bounds.Bottom = ObjBounds.Bottom;
var ObjBounds = Obj.Get_Bounds();
if (true === Obj.Use_TextWrap())
{
if (ObjBounds.Bottom > Bounds.Bottom)
Bounds.Bottom = ObjBounds.Bottom;
}
else if (undefined !== Height && ObjBounds.Top < this.Y + Height)
{
if (ObjBounds.Bottom >= this.Y + Height)
Bounds.Bottom = this.Y + Height;
else if (ObjBounds.Bottom > Bounds.Bottom)
Bounds.Bottom = ObjBounds.Bottom;
}
}
}
......
......@@ -6192,6 +6192,11 @@ ParaDrawing.prototype =
this.PageNum = newPageIndex;
},
Get_PageNum : function()
{
return this.PageNum;
},
Get_AllParagraphs : function(Props, ParaArray)
{
......
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