зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1357061 - remove potentially useless ensureElementIsVisible call (that currently causes a sync reflow) when an arrowscrollbox handles an underflow event, r=dao.
This commit is contained in:
Родитель
3a075087f5
Коммит
c12444e5f6
|
@ -758,10 +758,6 @@
|
|||
// See bug 341047 and comments in overflow handler as to why
|
||||
// try..catch is needed here
|
||||
this._updateScrollButtonsDisabledState();
|
||||
|
||||
let childNodes = this._getScrollableElements();
|
||||
if (childNodes && childNodes.length)
|
||||
this.ensureElementIsVisible(childNodes[0], false);
|
||||
} catch (e) {
|
||||
this.removeAttribute("notoverflowing");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче