mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-30 13:51:53 +08:00
Comment for TextBoxHelper.AutoScrollProperty
This commit is contained in:
@@ -11,7 +11,7 @@ namespace SourceGit.Helpers {
|
||||
public static class TextBoxHelper {
|
||||
|
||||
/// <summary>
|
||||
/// Auto scroll on text changed.
|
||||
/// Auto scroll on text changed or selection changed.
|
||||
/// </summary>
|
||||
public static readonly DependencyProperty AutoScrollProperty = DependencyProperty.RegisterAttached(
|
||||
"AutoScroll",
|
||||
@@ -216,8 +216,7 @@ namespace SourceGit.Helpers {
|
||||
textBox.ScrollToVerticalOffset(textBox.VerticalOffset + rect.Top);
|
||||
} else if (rect.Bottom >= textBox.ActualHeight) {
|
||||
textBox.ScrollToVerticalOffset(textBox.VerticalOffset + rect.Bottom);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user