mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
limit
This commit is contained in:
parent
e8f13dffe0
commit
79a9f4f3a7
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user