This commit is contained in:
恍兮惚兮 2024-06-19 09:15:34 +08:00
parent 999930f433
commit 06f3a08b9c
2 changed files with 6 additions and 1 deletions

View File

@ -795,6 +795,9 @@ class WebivewWidget(abstractwebview):
def set_zoom(self, zoom): def set_zoom(self, zoom):
self.put_ZoomFactor(zoom) self.put_ZoomFactor(zoom)
def get_ZoomFactor(self):
return winsharedutils.get_ZoomFactor(self.get_controller())
def put_ZoomFactor(self, zoom): def put_ZoomFactor(self, zoom):
winsharedutils.put_ZoomFactor(self.get_controller(), zoom) winsharedutils.put_ZoomFactor(self.get_controller(), zoom)

View File

@ -91,7 +91,9 @@ class TextBrowser(QWidget, dataget):
pass pass
def calllunaheightchange(self, h): def calllunaheightchange(self, h):
self.contentsChanged.emit(QSize(self.width(), h)) self.contentsChanged.emit(
QSize(self.width(), h * self.webivewwidget.get_ZoomFactor())
)
def internalheighchange(self): def internalheighchange(self):
self.testeval( self.testeval(