OSDN Git Service

Fix logcat table scrolling behavior.
authorSiva Velusamy <vsiva@google.com>
Thu, 11 Aug 2011 17:55:24 +0000 (10:55 -0700)
committerSiva Velusamy <vsiva@google.com>
Thu, 11 Aug 2011 18:04:26 +0000 (11:04 -0700)
commit32ddf80b7b881104a5cf92fcc1429458d54ce9db
tree40f82fdcc40d917b1429e93d2e74c59f73248d4a
parentf4e356b9e60ebb5924634f099d89d5cdc91a62eb
Fix logcat table scrolling behavior.

This patch makes the logcat table scroll behavior to be consistent
with other consoles/terminals: The table will scroll to reveal a
newly added message if and only if the last logcat message is
currently displayed (which is the same as saying if the scrollbar
is at the bottom of the table). If the user scrolls up the table
by moving the scroll thumb, then newly added messages will not
trigger a scroll.

Change-Id: Ia9c180b093de91406e8ced020589c71b4d2e1eb1
ddms/libs/ddmuilib/src/com/android/ddmuilib/logcat/LogCatPanel.java