mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
scroll to the end of Event Log when new notifications appear
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user