The information in this topic may be out of date. The current SDK reference guide has moved here.

getScrollRootElement method

Class: ConfigurationPlatform: PuppeteerLanguage: JavaScript SDK:

Returns the element to which Configuration.setHideScrollbars applies to.


let configval = config.getScrollRootElement();
config.scrollRootElement = configval;
configval = config.scrollRootElement;

Note that this feature is available as both a method and a property.


This method does not take any parameters.

Return value

Returns the value most recently set using Configuration.setScrollRootElement, or returns an undefined value if this method was not called.