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

[msal-browser] Add negative offset value prevention for popup windows #1981

Merged
merged 3 commits into from Jul 17, 2020

Conversation

hectormmg
Copy link
Member

@hectormmg hectormmg commented Jul 16, 2020

This PR prevents PopUp window position offsets from being negative by using Math.max() in order to make the top and left offsets 0 if they are negative immediately before they are added to the calculated position.

Fixes #1928

@coveralls
Copy link

coveralls commented Jul 16, 2020

Coverage Status

Coverage remained the same at 81.692% when pulling b4abe08 on popup-position-fix into d77aafd on dev.

Copy link
Contributor

@pkanher617 pkanher617 left a comment

Choose a reason for hiding this comment

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

If there is an easy way to add tests for this, we should add them.

@pkanher617 pkanher617 merged commit be0eff6 into dev Jul 17, 2020
@hectormmg hectormmg deleted the popup-position-fix branch July 17, 2020 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
msal-browser Related to msal-browser package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.loginPop() window position within browser window is cut off in Chrome and Edge.
5 participants