Scrollbar with Word Wrapping enabled

SyntaxEditor for WPF Forum

Posted 9 years ago by PROCOS - PROCOS AG
Version: 14.2.0611
Platform: .NET 4.5
Environment: Windows 8 (64-bit)


I have set WordWrapMode='Word' in syntax editor WPF. The vertical scrollbar appears immediately after writting the first character into the editor (even if no scrollbar is needed yet) and you can scroll past the end of the document.

You can easily reproduce it with your samples (e.g. SDI Code Editor).

Thanks for your help.


Comments (1)

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA

Hello Martin,

Thanks for writing.  This is a bit of a known issue that we have on the TODO list.  It's due to how the scrollbar min/max are calculated when in word wrap mode, which is different than when in non-word-wrap mode.  The number of visual lines in the editor is completely virtualized, so with word wrap mode we base the min/max on the number of characters in the document and what the first visible character is.  We would like to revisit the code in this area in the future to see if we can improve/change the logic to be better.  I will log this thread with that TODO item.

Actipro Software Support

The latest build of this product (v24.1.2) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.