зеркало из https://github.com/mozilla/gecko-dev.git
Bug 612036 - "Error during resize if focused element has a custom dragger" [r=mark.finkle]
This commit is contained in:
Родитель
7f8413275d
Коммит
de2cd385a6
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче