# print "scroll requested or scrollbar is closer than %dpx to the bottom" % (widget_height*0.2)
# print "scroll requested or scrollbar is closer than %dpx to the bottom" % (widget_height*0.2)
# self._print_scrollbar_position()
# self._print_scrollbar_position()
self._scroll_to_bottom()
self._scroll_to_bottom()
...
@@ -769,7 +769,7 @@ class ChatWidget(base_class, ui_class):
...
@@ -769,7 +769,7 @@ class ChatWidget(base_class, ui_class):
def_print_scrollbar_position(self):
def_print_scrollbar_position(self):
frame=self.chat_view.page().mainFrame()
frame=self.chat_view.page().mainFrame()
print("%d out of %d, %d+%d=%d (%d)"%(frame.scrollBarValue(Qt.Vertical),frame.scrollBarMaximum(Qt.Vertical),frame.scrollBarValue(Qt.Vertical),self.chat_view.size().height(),
print("%d out of %d, %d+%d=%d (%d)"%(frame.scrollBarValue(Qt.Vertical),frame.scrollBarMaximum(Qt.Vertical),frame.scrollBarValue(Qt.Vertical),self.chat_view.size().height(),