When a RichText document contains only an image (or the first item is an image) it is automatically scrolling to the bottom of the first image. We had previously fixed this with the following code:
DocumentChanged =>
{
// Scroll to Top-left of new document
Dispatcher.BeginInvoke(new Action(() =>
{
this.ScrollToHorizontalOffset(0);
this.ScrollToVerticalOffset(0);
}));
};
After updating to a newer version of the Telerik Dlls this seems to have stopped working and the problem is back. Anyone know how to stop this happening?
Originally a support ticket: http://www.telerik.com/account/support-tickets/view-ticket.aspx?threadid=546164
Thanks.
UPDATE: After further investigation it seems this works fine for when a document is changed - but does not fix when the RichTextBox is in a RadWindow - and the Document is set in the Constructor of the RadWindow. Is the DocumentChanged event not firing? Or is the invocation not enough? Help please.
DocumentChanged =>
{
// Scroll to Top-left of new document
Dispatcher.BeginInvoke(new Action(() =>
{
this.ScrollToHorizontalOffset(0);
this.ScrollToVerticalOffset(0);
}));
};
After updating to a newer version of the Telerik Dlls this seems to have stopped working and the problem is back. Anyone know how to stop this happening?
Originally a support ticket: http://www.telerik.com/account/support-tickets/view-ticket.aspx?threadid=546164
Thanks.
UPDATE: After further investigation it seems this works fine for when a document is changed - but does not fix when the RichTextBox is in a RadWindow - and the Document is set in the Constructor of the RadWindow. Is the DocumentChanged event not firing? Or is the invocation not enough? Help please.