mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-13 19:40:09 +02:00
TurboPower_iPro: Fix showing of long tables at the beginning of a document.
git-svn-id: trunk@52079 -
This commit is contained in:
parent
8219b1fdfc
commit
90fa951b31
@ -1292,6 +1292,7 @@ var
|
|||||||
R : TRect;
|
R : TRect;
|
||||||
P : TPoint;
|
P : TPoint;
|
||||||
L0 : Boolean;
|
L0 : Boolean;
|
||||||
|
isVisible: Boolean;
|
||||||
begin
|
begin
|
||||||
L0 := FBlockOwner.Level0;
|
L0 := FBlockOwner.Level0;
|
||||||
FCurProps := nil;
|
FCurProps := nil;
|
||||||
@ -1313,9 +1314,11 @@ begin
|
|||||||
//DumpTIpHtmlProps(FCurProps);
|
//DumpTIpHtmlProps(FCurProps);
|
||||||
{$endif}
|
{$endif}
|
||||||
//debugln(['TIpHtmlNodeBlock.RenderQueue ',i,' ',IntersectRect(R, CurWord.WordRect2, Owner.PageViewRect),' CurWord.WordRect2=',dbgs(CurWord.WordRect2),' Owner.PageViewRect=',dbgs(Owner.PageViewRect)]);
|
//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)
|
isVisible := ((CurWord.ElementType = etObject) or (CurWord.WordRect2.Bottom <= FIpHtml.PageViewBottom))
|
||||||
then begin
|
and IntersectRect(R, CurWord.WordRect2, FIpHtml.PageViewRect);
|
||||||
|
|
||||||
|
if isVisible then begin
|
||||||
case CurWord.ElementType of
|
case CurWord.ElementType of
|
||||||
etWord :
|
etWord :
|
||||||
DoRenderElemWord(CurWord, CurTabFocus);
|
DoRenderElemWord(CurWord, CurTabFocus);
|
||||||
|
Loading…
Reference in New Issue
Block a user