Skip to content

Fix tab indicator clipping by removing matchContentSize in JetLaggedHeaderTabs - #1707

Open
kuvandikov wants to merge 1 commit into
android:mainfrom
kuvandikov:fix-tab-indicator-issue-1703
Open

Fix tab indicator clipping by removing matchContentSize in JetLaggedHeaderTabs#1707
kuvandikov wants to merge 1 commit into
android:mainfrom
kuvandikov:fix-tab-indicator-issue-1703

Conversation

@kuvandikov

Copy link
Copy Markdown

Description

This PR fixes issue #1703 where the tab selection indicator in the JetLagged sample was incorrectly sized and clipping the label text.

Screenshot_20260829_053440

Changes:

  • Removed matchContentSize = true from .tabIndicatorOffset() in the indicator implementation.
  • By disabling content matching (returning to default behavior), the indicator box now fills the entire tab slot, providing enough space to comfortably encapsulate the label text without clipping.

Verification:

  • Verified via Compose Preview: The indicator now correctly encloses the entire label (e.g., "Day", "Week") without any clipping.
  • Verified on Emulator: The selection box aligns perfectly with the tab's clickable area.

Related Issues

Fixes #1703

@kuvandikov kuvandikov changed the title Fix tab indicator clipping by removing matchContentSize in JetLaggedHeaderTabs Fix tab indicator clipping by removing matchContentSize in JetLaggedHeaderTabs #1703 Aug 29, 2026
@kuvandikov kuvandikov changed the title Fix tab indicator clipping by removing matchContentSize in JetLaggedHeaderTabs #1703 Fix tab indicator clipping by removing matchContentSize in JetLaggedHeaderTabs Aug 29, 2026
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.

[Bug]: JetLagged: Home screen: Selection indicator on "Day" tab is misaligned and truncated.

1 participant