UI/Previewers/PreviewerHTML.py

changeset 5266
c2abca3b5e7b
parent 4975
c71c0afee067
child 5389
9b1c800daff3
equal deleted inserted replaced
5265:787d87769425 5266:c2abca3b5e7b
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