From 7fcfe6282eb420d7dff85987b4b3c50353d1b5a3 Mon Sep 17 00:00:00 2001 From: Michael Babienco Date: Sat, 3 Jan 2026 22:11:58 +0900 Subject: [PATCH] Fix scrolling to bottom when prop is not text --- Views/MainView.axaml.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Views/MainView.axaml.cs b/Views/MainView.axaml.cs index 31c478d..1ccb2e0 100644 --- a/Views/MainView.axaml.cs +++ b/Views/MainView.axaml.cs @@ -1,4 +1,5 @@ -using Avalonia; +using System; +using Avalonia; using Avalonia.Controls; using Avalonia.Markup.Xaml; @@ -14,7 +15,10 @@ namespace ReceiptPDFBuilder.Views private void LogBlock_PropertyChanged(object? sender, AvaloniaPropertyChangedEventArgs e) { - LogScrollView.ScrollToEnd(); + if (e.Property.ToString() == "Text") + { + LogScrollView.ScrollToEnd(); + } } } }