From a53996fd8450b6eb06b0ced80ef7b964221415d3 Mon Sep 17 00:00:00 2001 From: WarmUpTill <19472752+WarmUpTill@users.noreply.github.com> Date: Wed, 11 Dec 2024 13:08:55 +0100 Subject: [PATCH] Fix freeze due to ResizingPlainTextEdit constantly resizing incorrectly --- lib/utils/resizing-text-edit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/resizing-text-edit.cpp b/lib/utils/resizing-text-edit.cpp index f347da4d5..5fff73e21 100644 --- a/lib/utils/resizing-text-edit.cpp +++ b/lib/utils/resizing-text-edit.cpp @@ -94,7 +94,7 @@ void ResizingPlainTextEdit::AddHeightForScrollBar(bool addHeight) return; } - _hScrollBarAddedHeight = verticalScrollBar()->height(); + _hScrollBarAddedHeight = horizontalScrollBar()->height(); setFixedHeight(height() + _hScrollBarAddedHeight); }