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