UI/Previewers/PreviewerHTML.py

branch
6_1_x
changeset 5267
ede9faf7388a
parent 4972
fe8015457551
equal deleted inserted replaced
5261:e9e24583e6f4 5267:ede9faf7388a
250 "res.x = window.scrollX;" 250 "res.x = window.scrollX;"
251 "res.y = window.scrollY;" 251 "res.y = window.scrollY;"
252 "return res;" 252 "return res;"
253 "})()" 253 "})()"
254 ) 254 )
255 pos = QPoint(pos["x"], pos["y"]) 255 if pos is not None:
256 pos = QPoint(pos["x"], pos["y"])
257 else:
258 pos = QPoint(0, 0)
256 self.__scrollBarPositions[self.__previewedPath] = pos 259 self.__scrollBarPositions[self.__previewedPath] = pos
257 self.__hScrollBarAtEnd[self.__previewedPath] = False 260 self.__hScrollBarAtEnd[self.__previewedPath] = False
258 self.__vScrollBarAtEnd[self.__previewedPath] = False 261 self.__vScrollBarAtEnd[self.__previewedPath] = False
259 262
260 def __restoreScrollBarPositions(self): 263 def __restoreScrollBarPositions(self):

eric ide

mercurial