Skip to content

Commit

Permalink
fixes #34
Browse files Browse the repository at this point in the history
  • Loading branch information
ablasdel committed Aug 12, 2013
1 parent 5a3a257 commit c916398
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rqt_robot_monitor/src/rqt_robot_monitor/inspector_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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)
Expand Down

0 comments on commit c916398

Please # to comment.