Skip to content

fix(ui5-table): ignore 1px scrollWidth/clientWidth diff to prevent stuck popin on Safari#13791

Open
aborjinik wants to merge 1 commit into
mainfrom
fix/table-popin-safari-subpixel
Open

fix(ui5-table): ignore 1px scrollWidth/clientWidth diff to prevent stuck popin on Safari#13791
aborjinik wants to merge 1 commit into
mainfrom
fix/table-popin-safari-subpixel

Conversation

@aborjinik

Copy link
Copy Markdown
Contributor

Safari can report scrollWidth 1px greater than clientWidth during zoom transitions due to subpixel rounding. The previous strict scrollWidth > clientWidth check treated this as real overflow and triggered spurious popin cycles that corrupted _containerWidth, leaving columns stuck in the popin area even after zooming back out.

Treat differences of 1px as no overflow. Real overflows (>= 2px) still trigger popin as before.

Fixes: #12812

…uck popin on Safari

Safari can report scrollWidth 1px greater than clientWidth during zoom
transitions due to subpixel rounding. The previous strict
`scrollWidth > clientWidth` check treated this as real overflow and
triggered spurious popin cycles that corrupted `_containerWidth`,
leaving columns stuck in the popin area even after zooming back out.

Treat differences of 1px as no overflow. Real overflows (>= 2px) still
trigger popin as before.

Fixes: #12812
@aborjinik aborjinik temporarily deployed to netlify-preview July 7, 2026 09:37 — with GitHub Actions Inactive
@sap-ui5-webcomponents-release

Copy link
Copy Markdown

@aborjinik aborjinik requested a review from simlin July 7, 2026 13:00
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.

[ui5-table]: Avoid popin of table columns if there is enough space left.

1 participant