Commit 6ad6ab02 authored by Sergey Luzyanin's avatar Sergey Luzyanin

Bug #31887 - При клике на шаблон таблицы происходит расширение ячеек

parent a32ac3aa
......@@ -1363,7 +1363,18 @@ CPresentation.prototype =
var content = grFrame.graphicObject.Content, i;
for(i = 0; i < content.length; ++i)
{
content[i].Set_Height(content[i].Height, heightrule_AtLeast );
var ResultHeight;
ResultHeight = content[i].Height;
var FirstCell = content[i].Content[0];
if(FirstCell)
{
var oMargins = FirstCell.Get_Margins();
if(oMargins)
{
ResultHeight -= (oMargins.Top + oMargins.Bottom);
}
}
content[i].Set_Height(ResultHeight, heightrule_AtLeast );
}
},
......
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