GetItemBounds() has bad result with oversized page header

ScaleRichView support and discussion (TRichView add-on for WYSIWYG editing)
Post Reply
mboth
Posts: 26
Joined: Thu Nov 26, 2009 10:48 am
Location: Hannover, Germany.

GetItemBounds() has bad result with oversized page header

Post by mboth »

Greetings,

TSRichViewEdit::GetItemBounds() has bad result with oversized page header. When the header is higher than the page top margin, the page content moves down. In this case, GetItemBounds() does not take the offset in account I believe. Is there a workaround, maybe?

ScaleRichView 2.4.1 (sorry for the old version)

By the way, is it possible to change the behaviour so that the content is not moved by the oversized header? The header and the content would appear at the same spot, overwriting themselves.

Moritz
Sergey Tkachenko
Site Admin
Posts: 17554
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

1) About GetItemBounds - yes, this is a bug, it will be fixed in the next update.

2) No, there is no such option. You can consider drawing header and footer yourself (see Demos\Basic Demos\Header and Footer\)
Sergey Tkachenko
Site Admin
Posts: 17554
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Fixed in v3.1.1
Post Reply