This commit is contained in:
恍兮惚兮 2024-07-03 21:03:49 +08:00
parent e8f13dffe0
commit 79a9f4f3a7

View File

@ -841,10 +841,9 @@ class QUnFrameWindow(resizableframeless):
return
if not globalconfig["adaptive_height"]:
return
limit = min(size.height(), self.screen().geometry().height())
newHeight = (
size.height()
+ self.translate_text._padding
+ int(globalconfig["buttonsize"] * 1.5)
limit + self.translate_text._padding + int(globalconfig["buttonsize"] * 1.5)
)
self.resize(self.width(), newHeight)