Bug 612036 - "Error during resize if focused element has a custom dragger" [r=mark.finkle]

This commit is contained in:
Wesley Johnston 2010-11-15 16:41:00 -05:00
Родитель 7f8413275d
Коммит de2cd385a6
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -292,7 +292,7 @@ var Browser = {
// We want to keep the current focused element into view if possible
let currentElement = document.activeElement;
let [scrollbox, scrollInterface] = ScrollUtils.getScrollboxFromElement(currentElement);
if (currentElement && (currentElement.id != "inputhandler-overlay") && scrollbox && currentElement != scrollbox) {
if (scrollbox && scrollInterface && currentElement && currentElement != scrollbox) {
// retrieve the direct child of the scrollbox
while (currentElement.parentNode != scrollbox)
currentElement = currentElement.parentNode;