diff --git a/client/ayon_core/tools/utils/widgets.py b/client/ayon_core/tools/utils/widgets.py index f08e2fa5f2..0cd6d68ab3 100644 --- a/client/ayon_core/tools/utils/widgets.py +++ b/client/ayon_core/tools/utils/widgets.py @@ -411,11 +411,13 @@ class ExpandingTextEdit(QtWidgets.QTextEdit): document = self.document().clone() document.setTextWidth(document_width) - return margins.top() + document.size().height() + margins.bottom() + return math.ceil( + margins.top() + document.size().height() + margins.bottom() + ) def sizeHint(self): width = super().sizeHint().width() - return QtCore.QSize(width, math.ceil(self.heightForWidth(width))) + return QtCore.QSize(width, self.heightForWidth(width)) class BaseClickableFrame(QtWidgets.QFrame):