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: place dialog within screen bounds after calculating the position… #333

Merged
merged 1 commit into from
Sep 20, 2023

Conversation

Kailijan
Copy link
Contributor

@Kailijan Kailijan commented Apr 20, 2023

This should fix the issue #331 (as introduced by #329) by moving the repositioning after the initial calculation.

Additionally, I reset the values of this.arrowTop and this.cpArrowPosition to avoid misplacement of the arrow when this.cpPosition changes on a subsequent call.

I also changed the if-else to a switch-case for a better readability.

Closes #331

@sconix sconix closed this Sep 10, 2023
@sconix sconix reopened this Sep 20, 2023
@sconix sconix merged commit f2453ef into zefoy:master Sep 20, 2023
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.

dialog position is not correct in latest upgrade 14.x
2 participants