diff --git a/LunaTranslator/LunaTranslator/rendertext/textbrowser.py b/LunaTranslator/LunaTranslator/rendertext/textbrowser.py index d05d184e..96c034cc 100644 --- a/LunaTranslator/LunaTranslator/rendertext/textbrowser.py +++ b/LunaTranslator/LunaTranslator/rendertext/textbrowser.py @@ -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):