Skip to content

Commit 13a95cd

Browse files
committed
fix: the last auto-wrap character gets cropped in commit message editor (#2597)
Signed-off-by: leo <longshuang@msn.cn>
1 parent f153843 commit 13a95cd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/Views/CommitMessageToolBox.axaml.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs chang
335335
// Sync the actual width to TextPresenter. Otherwise, `TextWrapping` will not work well without
336336
// a fixed width. See https://github.com/AvaloniaUI/Avalonia/issues/5819
337337
if (_textPresenter != null)
338-
_textPresenter.Width = Bounds.Width;
338+
_textPresenter.Width = Bounds.Width - 10.0;
339339
}
340340
}
341341

0 commit comments

Comments
 (0)