docs

Object Page Scrolling

The object page offers different ways to handle specific scrolling scenarios.


General Scrolling Behavior

By default, the headerContent of the ObjectPage snaps to the headerTitle when scrolling a longer section. Some of the contents of the headerContent move to the headerTitle and thus always remain visible. You can see an example of this behavior in the screenshot below.

Object Page Header: Expanded (left) / Snapped (right)

This behavior can be altered. Setting the property alwaysShowContentHeader to true will prevent the headerContent from snapping.

Note:

This property only affects desktop environments.


Selected Section

As the user scrolls through the sections, the currently scrolled section is internally set to the selectedSection association of ObjectPageLayout. The app can also modify its value:

Related Information

Sample: sap.uxap.sample.ObjectPageState