Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
danwalmsley authored Jul 21, 2021
2 parents 8165888 + 5245375 commit 4964991
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/AvaloniaEdit/Rendering/TextView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -970,6 +970,10 @@ protected override Size MeasureOverride(Size availableSize)

TextLayer.SetVisualLines(_visibleVisualLines);

SetScrollData(availableSize,
new Size(maxWidth, heightTreeHeight),
_scrollOffset);

// Size of control (scorll viewport) might be changed during ArrageOverride. We only need document size for now.
_documentSize = new Size(maxWidth, heightTreeHeight);

Expand Down
2 changes: 1 addition & 1 deletion src/AvaloniaEdit/TextEditorOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ public virtual bool CutCopyWholeLine

/// <summary>
/// Gets/Sets whether the user can scroll below the bottom of the document.
/// The default value is false; but it a good idea to set this property to true when using folding.
/// The default value is true; but it a good idea to set this property to true when using folding.
/// </summary>
[DefaultValue(true)]
public virtual bool AllowScrollBelowDocument
Expand Down

0 comments on commit 4964991

Please sign in to comment.