mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
ceil height of 'ExpandingTextEdit'
This commit is contained in:
parent
3d9fa01058
commit
e56c71d3ea
1 changed files with 3 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import logging
|
||||
import math
|
||||
from typing import Optional, List, Set, Any
|
||||
|
||||
from qtpy import QtWidgets, QtCore, QtGui
|
||||
|
|
@ -413,8 +414,8 @@ class ExpandingTextEdit(QtWidgets.QTextEdit):
|
|||
return margins.top() + document.size().height() + margins.bottom()
|
||||
|
||||
def sizeHint(self):
|
||||
width = super(ExpandingTextEdit, self).sizeHint().width()
|
||||
return QtCore.QSize(width, self.heightForWidth(width))
|
||||
width = super().sizeHint().width()
|
||||
return QtCore.QSize(width, math.ceil(self.heightForWidth(width)))
|
||||
|
||||
|
||||
class BaseClickableFrame(QtWidgets.QFrame):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue