scroll to the end of Event Log when new notifications appear

This commit is contained in:
peter
2012-06-15 17:16:46 +02:00
parent 46927c04d0
commit b4ee10efbb
@@ -134,7 +134,7 @@ class EventLogConsole {
}
Document document = editor.getDocument();
boolean scroll = document.getTextLength() == editor.getCaretModel().getOffset();
boolean scroll = document.getTextLength() == editor.getCaretModel().getOffset() || !editor.getContentComponent().hasFocus();
Long notificationTime = myProjectModel.getNotificationTime(notification);
if (notificationTime == null) {