This commit is contained in:
恍兮惚兮 2024-05-04 21:54:42 +08:00
parent 0c71262879
commit ce45fdcabb
2 changed files with 15 additions and 1 deletions

View File

@ -266,7 +266,14 @@ class Textbrowser:
self.movep(0, self.savey) self.movep(0, self.savey)
if globalconfig["zitiyangshi"] == 3: if globalconfig["zitiyangshi"] == 3:
self.textbrowser.show()
self.textbrowserback.show()
self.showyinyingtext(color, b1, b2) self.showyinyingtext(color, b1, b2)
self.textbrowser.hide()
self.textbrowserback.hide()
else:
self.textbrowser.show()
self.textbrowserback.show()
def getcurrpointer(self): def getcurrpointer(self):
return self.textcursor.position() return self.textcursor.position()

View File

@ -872,7 +872,14 @@ class QUnFrameWindow(resizableframeless):
return return
newHeight = self.document.size().height() newHeight = self.document.size().height()
width = self.width() width = self.width()
self.resize(width, int(5 + newHeight + globalconfig["buttonsize"] * 1.5)) self.resize(
width,
int(
max(0, -globalconfig["extra_space"])
+ newHeight
+ globalconfig["buttonsize"] * 1.5
),
)
def clickRange(self, auto): def clickRange(self, auto):
if globalconfig["sourcestatus2"]["ocr"]["use"] == False: if globalconfig["sourcestatus2"]["ocr"]["use"] == False: