Commit 1231f5fc authored by Ilya.Kirillov's avatar Ilya.Kirillov Committed by Alexander.Trofimov

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

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48147 954022d7-b5bf-4e40-9824-e11837661b57
parent b6a31ff0
......@@ -873,6 +873,25 @@ CTable.prototype =
var CellBorders = Cell.Get_Borders();
var CellShd = Cell.Get_Shd();
if ( true === Cell.Is_TableMargins() )
{
Pr.CellMargins =
{
Flag : 0
};
}
else
{
Pr.CellMargins =
{
Left : CellMargins.Left.W,
Right : CellMargins.Right.W,
Top : CellMargins.Top.W,
Bottom : CellMargins.Bottom.W,
Flag : 2
};
}
Pr.CellsVAlign = Cell.Get_VAlign();
var Spacing = this.Content[0].Get_CellSpacing();
......@@ -1009,25 +1028,6 @@ CTable.prototype =
InsideV : null === Border_insideV ? null : Border_insideV.Copy()
};
}
if ( true === Cell.Is_TableMargins() )
{
Pr.CellMargins =
{
Flag : 0
};
}
else
{
Pr.CellMargins =
{
Left : CellMargins.Left.W,
Right : CellMargins.Right.W,
Top : CellMargins.Top.W,
Bottom : CellMargins.Bottom.W,
Flag : 2
};
}
}
switch(Pr.CellsVAlign)
......
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