mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
change where the ceil happens
This commit is contained in:
parent
e56c71d3ea
commit
fd4e5f58d4
1 changed files with 4 additions and 2 deletions
|
|
@ -411,11 +411,13 @@ class ExpandingTextEdit(QtWidgets.QTextEdit):
|
||||||
document = self.document().clone()
|
document = self.document().clone()
|
||||||
document.setTextWidth(document_width)
|
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):
|
def sizeHint(self):
|
||||||
width = super().sizeHint().width()
|
width = super().sizeHint().width()
|
||||||
return QtCore.QSize(width, math.ceil(self.heightForWidth(width)))
|
return QtCore.QSize(width, self.heightForWidth(width))
|
||||||
|
|
||||||
|
|
||||||
class BaseClickableFrame(QtWidgets.QFrame):
|
class BaseClickableFrame(QtWidgets.QFrame):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue