mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
eh
This commit is contained in:
parent
f65b790d63
commit
323d0e65db
@ -395,6 +395,8 @@ class TextBrowser(QWidget, dataget):
|
|||||||
fh = globalconfig["extra_space"]
|
fh = globalconfig["extra_space"]
|
||||||
fha, _ = self._getfh(True)
|
fha, _ = self._getfh(True)
|
||||||
self.extra_height = fha
|
self.extra_height = fha
|
||||||
|
if fh < 0:
|
||||||
|
self.extra_height = max(-fh, self.extra_height)
|
||||||
for i in range(b1, b2):
|
for i in range(b1, b2):
|
||||||
_fha = 0
|
_fha = 0
|
||||||
for word in linetags[i - b1]:
|
for word in linetags[i - b1]:
|
||||||
@ -417,8 +419,10 @@ class TextBrowser(QWidget, dataget):
|
|||||||
fh = globalconfig["extra_space"]
|
fh = globalconfig["extra_space"]
|
||||||
else:
|
else:
|
||||||
fh = globalconfig["extra_space_trans"]
|
fh = globalconfig["extra_space_trans"]
|
||||||
|
if fh < 0:
|
||||||
self.extra_height = 0
|
self.extra_height = -fh
|
||||||
|
else:
|
||||||
|
self.extra_height = 0
|
||||||
for i in range(b1, b2):
|
for i in range(b1, b2):
|
||||||
b = self.textbrowser.document().findBlockByNumber(i)
|
b = self.textbrowser.document().findBlockByNumber(i)
|
||||||
tf = b.blockFormat()
|
tf = b.blockFormat()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user