From 02a6a162b48648c6d591d251ec9266232074909a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Wed, 28 Aug 2024 21:12:04 +0800 Subject: [PATCH] fix --- LunaTranslator/LunaTranslator/gui/translatorUI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LunaTranslator/LunaTranslator/gui/translatorUI.py b/LunaTranslator/LunaTranslator/gui/translatorUI.py index f86d083e..327510d3 100644 --- a/LunaTranslator/LunaTranslator/gui/translatorUI.py +++ b/LunaTranslator/LunaTranslator/gui/translatorUI.py @@ -872,6 +872,7 @@ class TranslatorWindow(resizableframeless): self.initvalues() self.initsignals() self.titlebar = ButtonBar(self) + self.titlebar.move(0, 0) # 多显示屏下,谜之错位 self.titlebar.setFixedHeight(int(globalconfig["buttonsize"] * 1.5)) self.titlebar.setObjectName("titlebar") self.titlebar.setMouseTracking(True) @@ -1230,7 +1231,6 @@ class TranslatorWindow(resizableframeless): height = self.height() - wh self.translate_text.resize(self.width(), int(height)) - self.titlebar.move(0, 0) # 多显示屏下,谜之错位 if e.oldSize().width() != e.size().width(): self.titlebar.setFixedWidth(self.width())