Unable to put caret to the end of the line with cursor if it's not over text #145
Labels
No labels
Area-Accessibility
Area-Build
Area-CodeCompletion
Area-Document
Area-Documentation
Area-Editing
Area-Folding
Area-Highlighting
Area-i18n
Area-Indentation
Area-NetFx
Area-Rendering
Area-Search
Area-Snippets
dependencies
duplicate
Feedback Needed
help wanted
invalid
Issue-Bug
Issue-Discussion
Issue-Enhancement
Issue-Performance
Issue-Question
on-hold
Resolution-Answered
Resolution-By Design
Resolution-Duplicate
Resolution-Fixed
Resolution-Won't Fix
Up-for-Grabs
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-icsharpcode/AvalonEdit#145
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Cursor changes its appearance from arrow to beam and allows putting caret by clicking left button not on entering the whole
TextEditorcontrol but only an area with written text. This area is nestedTextViewerthat is left- and top- aligned but not stretched.Expected behavior: like in any other text editor control, if cursor is inside
TextEditorbut is not over any text, it should also change its appearance to Beam. If user attempts to left-click then caret should be put to the closest position in text.I've found the problem, and if it was not made purposely, just a little change should be done.
The simpliest solution is to change
ControlTemplateofTextEditor.ScrollViewer'sHorizontalContentAlignmentandVerticalContentAlignmentshould beStretchbut areLeftandTopnow.Maybe users should have a choice by editing
Options(but definitely not copyingTextViewer'sControlTemplatefrom sources!), but the expected behavior should be by default.