Commit a863a728 authored by Ilya.Kirillov's avatar Ilya.Kirillov

Исправлен баг с пересчетом параграфа, при котором не рассчитывалась визуальная...

Исправлен баг с пересчетом параграфа, при котором не рассчитывалась визуальная часть PageBreak. Исправлен баг с рассчетом разбиения таблицы на страницы (баг 26895).

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@58963 954022d7-b5bf-4e40-9824-e11837661b57
parent 7a67b549
......@@ -1243,6 +1243,21 @@ Paragraph.prototype.private_RecalculateLineCheckRangeY = function(CurLine, CurPa
};
Paragraph.prototype.private_RecalculateLineBreakPageEnd= function(CurLine, CurPage, PRS, ParaPr)
{
// Здесь проверяем специальный случай, когда у нас после PageBreak в параграфе ничего не идет кроме
// плавающих объектов. В такой ситуации мы располагаем эти объекты на текущей странице (см. DemoHyden v2).
if (true === PRS.NewPage && true === this.Check_BreakPageEnd(PRS.PageBreak))
{
PRS.PageBreak.Flags.NewLine = false;
PRS.ExtendBoundToBottom = true;
PRS.SkipPageBreak = true;
PRS.RecalcResult = recalcresult_CurLine;
return false;
}
};
Paragraph.prototype.private_RecalculateLineEnd = function(CurLine, CurPage, PRS, ParaPr)
{
if ( true === PRS.NewPage )
{
......@@ -1267,10 +1282,7 @@ Paragraph.prototype.private_RecalculateLineBreakPageEnd= function(CurLine, CurPa
PRS.RecalcResult = recalcresult_NextPage;
return false;
}
};
Paragraph.prototype.private_RecalculateLineEnd = function(CurLine, CurPage, PRS, ParaPr)
{
if (true !== PRS.End)
{
if ( true === PRS.ForceNewPage )
......
......@@ -16145,7 +16145,7 @@ CTable.prototype =
CurGridCol += GridSpan;
}
if ((heightrule_AtLeast === RowH.HRule || heightrule_Exact == RowH.HRule) && Y + RowH.Value > Y_content_end )
if ((heightrule_AtLeast === RowH.HRule || heightrule_Exact == RowH.HRule) && Y + RowH.Value > Y_content_end && ((0 === CurRow && 0 === CurPage) || CurRow != FirstRow))
{
bNextPage = true;
......
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