Skip to content

fix(ui5-popover): prevent horizontal position drift on reposition - #13987

Open
LidiyaGeorgieva wants to merge 4 commits into
mainfrom
PopoverFix
Open

fix(ui5-popover): prevent horizontal position drift on reposition#13987
LidiyaGeorgieva wants to merge 4 commits into
mainfrom
PopoverFix

Conversation

@LidiyaGeorgieva

Copy link
Copy Markdown
Contributor

The popover is repositioned every 300ms by PopoverRegistry. The RTL correction was added to the persisted this._left after the 1.5px dead-band check, so whenever the dead-band kept this._left unchanged the correction was re-applied every tick and accumulated, causing the popover to slowly drift and misalign with its opener. This was most visible at fractional zoom levels, where getBoundingClientRect().left is snapped to device pixels and yields a persistent sub-pixel correction.

Apply the correction to the raw left before the dead-band check so it is baked into this._left once and stays stable across repositions.

fixes: #13863

The popover is repositioned every 300ms by PopoverRegistry. The RTL
correction was added to the persisted `this._left` after the 1.5px
dead-band check, so whenever the dead-band kept `this._left` unchanged
the correction was re-applied every tick and accumulated, causing the
popover to slowly drift and misalign with its opener. This was most
visible at fractional zoom levels, where getBoundingClientRect().left
is snapped to device pixels and yields a persistent sub-pixel
correction.

Apply the correction to the raw left before the dead-band check so it
is baked into `this._left` once and stays stable across repositions.

fixes: #13863
@sap-ui5-webcomponents-release

Copy link
Copy Markdown

@LidiyaGeorgieva
LidiyaGeorgieva deployed to netlify-preview August 26, 2026 13:19 — with GitHub Actions Active
@LidiyaGeorgieva
LidiyaGeorgieva deployed to netlify-preview August 27, 2026 12:33 — with GitHub Actions Active
@LidiyaGeorgieva
LidiyaGeorgieva deployed to netlify-preview August 28, 2026 11:12 — with GitHub Actions Active
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-popover]: Popover width becomes misaligned with opener after resize or browser zoom

1 participant