Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui5-popover): calculate offset for all sides of the page #2916

Merged
merged 1 commit into from
Mar 23, 2021
Merged

fix(ui5-popover): calculate offset for all sides of the page #2916

merged 1 commit into from
Mar 23, 2021

Conversation

georgimkv
Copy link
Contributor

The popover has a 10px offset from the edges of the screen,
so that its size would not reach the border of the page.

Left and Top positons are now clamped to adjust for that offset on all sides.

Fixes: #2697

@georgimkv georgimkv requested a review from a team March 8, 2021 06:09
fifoosid
fifoosid previously approved these changes Mar 8, 2021
Copy link
Contributor

@fifoosid fifoosid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good from code POV, waiting for a review from @SAP/ui5-webcomponents-topic-rd before we merge it

The popover has a 10px offset from the edges of the screen,
so that its size would not reach the border of the page.

Left and Top positons are now clamped to adjust for that offset on all sides.

Fixes: #2697
@georgimkv
Copy link
Contributor Author

Rebased to resolve merge confict.

@fifoosid fifoosid merged commit e35cc1a into SAP:master Mar 23, 2021
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.

Incorrect Popover placement (sticks to browser window edge)
3 participants