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 return
if not globalconfig["adaptive_height"]: if not globalconfig["adaptive_height"]:
return return
limit = min(size.height(), self.screen().geometry().height())
newHeight = ( newHeight = (
size.height() limit + self.translate_text._padding + int(globalconfig["buttonsize"] * 1.5)
+ self.translate_text._padding
+ int(globalconfig["buttonsize"] * 1.5)
) )
self.resize(self.width(), newHeight) self.resize(self.width(), newHeight)