From a8e4b3aead744e48f8d66c3c5932c19ecd56f213 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Sat, 1 Oct 2011 18:48:50 +0200 Subject: [PATCH] Adjust AdditionalHorizontalScrollAmount to a more reasonable amount. This avoids the large whitespace to the right of the text when AvalonEdit is used in size-to-content mode. --- .../AvalonEdit/ICSharpCode.AvalonEdit/Rendering/TextView.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Libraries/AvalonEdit/ICSharpCode.AvalonEdit/Rendering/TextView.cs b/src/Libraries/AvalonEdit/ICSharpCode.AvalonEdit/Rendering/TextView.cs index 5a81b6717f..58f1c059a1 100644 --- a/src/Libraries/AvalonEdit/ICSharpCode.AvalonEdit/Rendering/TextView.cs +++ b/src/Libraries/AvalonEdit/ICSharpCode.AvalonEdit/Rendering/TextView.cs @@ -811,7 +811,7 @@ namespace ICSharpCode.AvalonEdit.Rendering /// Additonal amount that allows horizontal scrolling past the end of the longest line. /// This is necessary to ensure the caret always is visible, even when it is at the end of the longest line. /// - const double AdditionalHorizontalScrollAmount = 30; + const double AdditionalHorizontalScrollAmount = 3; Size lastAvailableSize; bool inMeasure;