Fix freeze due to ResizingPlainTextEdit constantly resizing incorrectly

This commit is contained in:
WarmUpTill 2024-12-11 13:08:55 +01:00 committed by WarmUpTill
parent d7a244e80e
commit f598d84ea1

View File

@ -94,7 +94,7 @@ void ResizingPlainTextEdit::AddHeightForScrollBar(bool addHeight)
return;
}
_hScrollBarAddedHeight = verticalScrollBar()->height();
_hScrollBarAddedHeight = horizontalScrollBar()->height();
setFixedHeight(height() + _hScrollBarAddedHeight);
}