Fix cur_scroll_page regression.

This commit is contained in:
Florian Bruhin 2014-02-17 22:24:17 +01:00
parent ab89a3baf0
commit 2779b2f42e

View File

@ -288,9 +288,9 @@ class TabbedBrowser(TabWidget):
def cur_scroll_page(self, mx, my, count=1):
"""Scroll the frame mx pages to the right and my pages down."""
# FIXME this might not work with HTML frames
size = self.page_.viewportSize()
self.currentWidget().page_.mainFrame().scroll(
int(count) * float(mx) * size.width(),
page = self.currentWidget().page_
size = page.viewportSize()
page.mainFrame().scroll(int(count) * float(mx) * size.width(),
int(count) * float(my) * size.height())
def switch_prev(self, count=1):