eric6/UI/Previewers/PreviewerHTML.py

changeset 8235
78e6d29eb773
parent 8227
349308e84eeb
child 8243
cc717c2ae956
equal deleted inserted replaced
8234:fcb6b4b96274 8235:78e6d29eb773
274 "res.x = window.scrollX;" 274 "res.x = window.scrollX;"
275 "res.y = window.scrollY;" 275 "res.y = window.scrollY;"
276 "return res;" 276 "return res;"
277 "})()" 277 "})()"
278 ) 278 )
279 if pos is not None: 279 pos = QPoint(0, 0) if pos is None else QPoint(pos["x"], pos["y"])
280 pos = QPoint(pos["x"], pos["y"])
281 else:
282 pos = QPoint(0, 0)
283 self.__scrollBarPositions[self.__previewedPath] = pos 280 self.__scrollBarPositions[self.__previewedPath] = pos
284 self.__hScrollBarAtEnd[self.__previewedPath] = False 281 self.__hScrollBarAtEnd[self.__previewedPath] = False
285 self.__vScrollBarAtEnd[self.__previewedPath] = False 282 self.__vScrollBarAtEnd[self.__previewedPath] = False
286 283
287 def __restoreScrollBarPositions(self): 284 def __restoreScrollBarPositions(self):

eric ide

mercurial