mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-10-31 13:03:20 -07:00
Comment for TextBoxHelper.AutoScrollProperty
This commit is contained in:
parent
bd96a9709f
commit
1587e65479
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue