This commit is contained in:
恍兮惚兮 2024-07-31 01:15:29 +08:00
parent f65b790d63
commit 323d0e65db

View File

@ -395,6 +395,8 @@ class TextBrowser(QWidget, dataget):
fh = globalconfig["extra_space"]
fha, _ = self._getfh(True)
self.extra_height = fha
if fh < 0:
self.extra_height = max(-fh, self.extra_height)
for i in range(b1, b2):
_fha = 0
for word in linetags[i - b1]:
@ -417,7 +419,9 @@ class TextBrowser(QWidget, dataget):
fh = globalconfig["extra_space"]
else:
fh = globalconfig["extra_space_trans"]
if fh < 0:
self.extra_height = -fh
else:
self.extra_height = 0
for i in range(b1, b2):
b = self.textbrowser.document().findBlockByNumber(i)