TurboPower_iPro: Fix showing of long tables at the beginning of a document.

git-svn-id: trunk@52079 -
This commit is contained in:
wp 2016-03-28 22:11:14 +00:00
parent 8219b1fdfc
commit 90fa951b31

View File

@ -1292,6 +1292,7 @@ var
R : TRect;
P : TPoint;
L0 : Boolean;
isVisible: Boolean;
begin
L0 := FBlockOwner.Level0;
FCurProps := nil;
@ -1313,9 +1314,11 @@ begin
//DumpTIpHtmlProps(FCurProps);
{$endif}
//debugln(['TIpHtmlNodeBlock.RenderQueue ',i,' ',IntersectRect(R, CurWord.WordRect2, Owner.PageViewRect),' CurWord.WordRect2=',dbgs(CurWord.WordRect2),' Owner.PageViewRect=',dbgs(Owner.PageViewRect)]);
if (CurWord.WordRect2.Bottom <= FIpHtml.PageViewBottom) and
IntersectRect(R, CurWord.WordRect2, FIpHtml.PageViewRect)
then begin
isVisible := ((CurWord.ElementType = etObject) or (CurWord.WordRect2.Bottom <= FIpHtml.PageViewBottom))
and IntersectRect(R, CurWord.WordRect2, FIpHtml.PageViewRect);
if isVisible then begin
case CurWord.ElementType of
etWord :
DoRenderElemWord(CurWord, CurTabFocus);