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)

Side-by-side comparison of the Object Page header. On the left, the expanded header shows a profile photo, contact details, social links, bio, location, a progress bar and section navigation tabs. On the right, the snapped header shows only the name, job title, and section navigation tabs.

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