Scroller Wrapper (Deprecated)

ui:scrollerWrapper

Deprecated. We recommend migrating to Lightning Web Components and using native scrolling in the Salesforce app.

For Use In

Salesforce Mobile App

We recommend using Lightning Web Components whenever possible. When migrating to Lightning Web Components, use native scrolling in the Salesforce app.

ui:scrollerWrapper creates a container that enables native scrolling in the Salesforce app. This component enables you to nest more than one scroller inside the container. Use the class attribute to define the height and width of the container. To enable scrolling, specify a height that's smaller than its content.

Use ui:scrollerWrapper for vertical scrolling. This component does not support horizontal scrolling.

This example creates a scrollable area with a height of 300px.

The Lightning Design System scrollable class isn't compatible with native scrolling on mobile devices. Use ui:scrollerWrapper if you want to enable scrolling in the Salesforce app.

In Google Chrome on mobile devices, nested ui:scrollerWrapper components are not scrollable when border-radius CSS property is set to a non-zero value. To enable scrolling in this case, set border-radius to a non-zero value on the outer ui:scrollerWrapper component.

Here is an example.