Incorrect behavior of horizontal scrollbar when resizing horizontally

SyntaxEditor for WPF Forum

Posted 12 years ago by Nick Beer - National Instruments
Version: 12.2.0573
Platform: .NET 4.5
Environment: Windows 8 (64-bit)
Avatar

Doing the following leads to what I think are unexpected results:

  1. Create a simple WPF project with a SyntaxEditor in a grid in a window: 
    <Window x:Class="TestSyntaxEditorSizing.MainWindow"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:editor="http://schemas.actiprosoftware.com/winfx/xaml/syntaxeditor"
            Title="MainWindow" Height="350" Width="525">
        <Grid>
            <editor:SyntaxEditor />
        </Grid>
    </Window>
  2. Type text into the editor longer than the window is wide - this should make the horizontal scrollbar display, shrink, and move to the right to display the latest text.
  3. Grab the right edge of the window and grow the window.

Now, I would expect that as the window grows, the text that had been previously hidden would begin to display on the left side of the editor, and the last character entered would remain at the right edge of the editor.  However, what happens instead is that the text does not move, you simply get more empty white space on the right side of the editor.  This behavior seems wrong, and is not in line with what most other text editors do.  Is there something I can do to change this behavior, or am I stuck with it?

- Nick

Comments (2)

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

Hi Nick,

Unfortunately there isn't a way to change that behavior.  We'll mark down the suggestion our TODO list.  Thanks!


Actipro Software Support

Answer - Posted 7 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Nick,

Thanks for this suggestion.  We're now working on refactoring our view/scrolling internals and have implemented this for SyntaxEditor vNext per this blog post:

http://blog.actiprosoftware.com/post/2017/11/13/SyntaxEditor-vNext-Is-Progressing


Actipro Software Support

The latest build of this product (v24.1.3) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.