This commit is contained in:
恍兮惚兮 2024-06-19 17:38:31 +08:00
parent 0bb95eaabd
commit 8c58822c93

View File

@ -52,7 +52,6 @@ class TextBrowser(QWidget, dataget):
def contentchangedfunction(self):
sz = self.textbrowser.document().size().toSize()
self.textbrowser.resize(self.width(), sz.height())
self.resize(self.width(), sz.height())
self.contentsChanged.emit(QSize(sz.width(), sz.height()))
def resizeEvent(self, event: QResizeEvent):