From b4ee10efbbea330e782e9fce642fc2f81882d1d7 Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 15 Jun 2012 16:50:43 +0200 Subject: [PATCH] scroll to the end of Event Log when new notifications appear --- .../src/com/intellij/notification/EventLogConsole.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/notification/EventLogConsole.java b/platform/platform-impl/src/com/intellij/notification/EventLogConsole.java index 89490155d5db..25dbb98ea411 100644 --- a/platform/platform-impl/src/com/intellij/notification/EventLogConsole.java +++ b/platform/platform-impl/src/com/intellij/notification/EventLogConsole.java @@ -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) {