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); }