call the width method to get the value

This commit is contained in:
iLLiCiTiT 2022-12-28 12:21:05 +01:00
parent f5842d91bd
commit a941aabc04

View file

@ -113,7 +113,7 @@ class ScrollMessageBox(QtWidgets.QDialog):
message_len = max(message_len, len(message))
# guess size of scrollable area
max_width = QtWidgets.QApplication.desktop().availableGeometry().width
max_width = QtWidgets.QApplication.desktop().availableGeometry().width()
scroll_widget.setMinimumWidth(
min(max_width, message_len * 6)
)