From c916398a798c62ebeac274f60fdfa8c19504e842 Mon Sep 17 00:00:00 2001 From: Aaron Blasdel Date: Mon, 12 Aug 2013 15:47:07 -0700 Subject: [PATCH] fixes #34 --- rqt_robot_monitor/src/rqt_robot_monitor/inspector_window.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rqt_robot_monitor/src/rqt_robot_monitor/inspector_window.py b/rqt_robot_monitor/src/rqt_robot_monitor/inspector_window.py index 1e4e5494..168294e9 100644 --- a/rqt_robot_monitor/src/rqt_robot_monitor/inspector_window.py +++ b/rqt_robot_monitor/src/rqt_robot_monitor/inspector_window.py @@ -140,6 +140,7 @@ def update_status_display(self, status, is_forced=False): """ if not self.paused or (self.paused and is_forced): + scroll_value = self.disp.verticalScrollBar().value() self.timeline_pane.new_diagnostic(status) rospy.logdebug('InspectorWin update_status_display 1') @@ -155,6 +156,9 @@ def update_status_display(self, status, is_forced=False): for v in status.values: self._sig_write.emit(v.key, v.value) + if self.disp.verticalScrollBar().maximum() < scroll_value: + scroll_value = self.disp.verticalScrollBar().maximum() + self.disp.verticalScrollBar().setValue(scroll_value) def _take_snapshot(self): snap = StatusSnapshot(self.status)