src/aria/utils/Dom.js
function (domElt) {
            // work-around for http://crbug.com/240772
            var values = [];
            var parent = domElt;
            while (parent && parent.style) {
                values.push(parent.style.cssText);
                parent.style.overflow = "hidden";
                parent = parent.parentNode;
            }
            domElt.getBoundingClientRect(); // making sure Chrome updates the display
            parent = domElt;
            while (parent && parent.style) {
                parent.style.cssText = values.shift();
                parent = parent.parentNode;
            }
        }
function (domElt) {
            // work-around for http://crbug.com/240772
            var values = [];
            var parent = domElt;
            while (parent && parent.style) {
                values.push(parent.style.cssText);
                parent.style.overflow = "hidden";
                parent = parent.parentNode;
            }
            domElt.getBoundingClientRect(); // making sure Chrome updates the display
            parent = domElt;
            while (parent && parent.style) {
                parent.style.cssText = values.shift();
                parent = parent.parentNode;
            }
        }
function ( domElt ) { // work-around for http://crbug.com/240772 var values = [ ] ; var parent = domElt ; while ( parent && parent . style ) { values . push ( parent . style . cssText ) ; parent . style . overflow = "hidden" ; parent = parent . parentNode ; } domElt . getBoundingClientRect ( ) ; // making sure Chrome updates the display parent = domElt ; while ( parent && parent . style ) { parent . style . cssText = values . shift ( ) ; parent = parent . parentNode ; } }
Refreshes scrollbars for the specified DOM element and all its parents.
@see refreshScrollbars
@param {HTMLElement} domElt
Refreshes scrollbars for the specified DOM element and all its parents .