ScrollBar in SyntaxEditor after collapsing

SyntaxEditor for WPF Forum

Posted 9 years ago by kodver
Version: 14.2.0611
Avatar

Hi!

Is there any way to update VerticalScrollBar after collapsing regions in SyntaxEditor?

Thanks

Comments (4)

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

Hello, I'm sorry but at the current time the scrollbar doesn't change its appearance after collapsing a region.  We will mark this down as a suggestion.


Actipro Software Support

Posted 5 years ago by Reinhard Gruber
Avatar

Any update on this bug?

There are some regions that are automatically collapsed when opening the document. The Scrollbar is not updated. So from the final users end of view the scrollbar looks as if the document can be scrolled. But the thumb stops in the middle of the trackbar. This is not intuitive for the user.

By the way: Visual Studio updates the scrollbar when collapsing regions.

 

Or another solution would be, if you include the logic of your free Code Writer App to the syntax editor control. There the size of the tumb is not updated, but the position of the thumb still corresponds to the visible code.

[Modified 5 years ago]

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

Hi Reinhard,

Not yet.  It is something we had considered for the massive work we're doing for SyntaxEditor vNext (described in our blog and which should be the 2019.1 version) but we didn't get a chance to dive into this yet.  

The main problem is that the scrollbar gets set the maximum line value which is the count of document lines.  However it doesn't factor in the collapsed lines, which would realistically reduce that overall count, and would require complex two-way mapping of scrollbar units to document lines while factoring in all the collapsed regions.  It's a bit complicated, which is why it didn't make the cut for the upcoming 2019.1 version.  We would like to work on this after 2019.1 is out across all platforms and stable, since it should behave better.  We've got a TODO item for this already from before, but feel free to check in in several months again after the 2019.1 updates are out for each platform.


Actipro Software Support

Posted 5 years ago by Reinhard Gruber
Avatar

Thanks a lot.

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

Add Comment

Please log in to a validated account to post comments.