Merge branch 'MDL-51838-master' of git://github.com/damyon/moodle
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
@@ -137,6 +137,15 @@ define(['jquery', 'core/log', 'core/str', 'core/templates', 'core/notification']
|
||||
element.attr('aria-selected', true).attr('id', itemId);
|
||||
// Tell the input field it has a new active descendant so the item is announced.
|
||||
inputElement.attr('aria-activedescendant', itemId);
|
||||
|
||||
// Scroll it into view.
|
||||
var scrollPos = element.offset().top
|
||||
- suggestionsElement.offset().top
|
||||
+ suggestionsElement.scrollTop()
|
||||
- (suggestionsElement.height() / 2);
|
||||
suggestionsElement.animate({
|
||||
scrollTop: scrollPos
|
||||
}, 100);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user