Skip to content

fix(ObjectPage): re-expand header on tab switch in IconTabBar mode#8817

Open
DougDK wants to merge 1 commit into
UI5:mainfrom
DougDK:fix/object-page-icon-tab-bar-header-expand
Open

fix(ObjectPage): re-expand header on tab switch in IconTabBar mode#8817
DougDK wants to merge 1 commit into
UI5:mainfrom
DougDK:fix/object-page-icon-tab-bar-header-expand

Conversation

@DougDK

@DougDK DougDK commented Jul 24, 2026

Copy link
Copy Markdown

Thank you for your contribution! 👏

To get it merged faster, kindly review the checklist below:

Pull Request Checklist

Problem

In IconTabBar mode, if the user scrolled down far enough to collapse the header and then switched tabs, the header could not be re-expanded. After scrollTo({ top: 0 }), scrollTop was 0 and headerCollapsed was still true, leaving the user with no way to scroll further up to trigger re-expansion.

Solution

Reset headerCollapsedInternal to false on tab switch so the header expands alongside scrollTo({ top: 0 }). The existing scrollTimeout guard in useObserveHeights already prevents the programmatic scroll from immediately re-collapsing it.

Also removes the redundant scrollTimeout clause from the spacer height condition introduced in #8582, which was suppressing scroll room during the tab switch window and had the same root problem.

Fixes #8803

In IconTabBar mode, switching tabs while the header was collapsed by
scrolling left the header permanently stuck — scrollTop was reset to 0
but headerCollapsed remained true with no scroll room to trigger
re-expansion.

Reset headerCollapsedInternal to false on tab switch so the header
expands naturally alongside scrollTo({ top: 0 }). The existing
scrollTimeout guard in useObserveHeights already prevents the
programmatic scroll from immediately re-collapsing it.

Also removes the redundant scrollTimeout clause from the spacer height
condition, which was suppressing scroll room during the tab switch
window.
@cla-assistant

cla-assistant Bot commented Jul 24, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ObjectPage in IconTabBar mode — collapsed header cannot be re-expanded by scroll-up after tab switch

1 participant