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 popup position when there's no enough space to its right #2409

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zheyujie
Copy link
Contributor

@zheyujie zheyujie commented Jun 3, 2023

Problem:

When an event title is too long, the show more popup may be positioned off screen with the left offset being set to a negative value.
Ideally the event title should be concise but I think it's still worth fixing the underlying issue here.

When there's enough space to its right:

image

When there's no enough space to its right:

image

The fix:

Add another condition check to make sure left is never negative.

How it looks like after the fix when there's no enough space to its right:

image

Fix popup position when it overflows
@zheyujie zheyujie changed the title Fix popup position when it overflows Fix popup position when there's no enough space to its right Jun 3, 2023
@zheyujie
Copy link
Contributor Author

Hey @cutterbl , any chance you can review this PR?
Thanks!

@zheyujie
Copy link
Contributor Author

Hi @cutterbl , are you able to take a look this PR when you have time? Cheers!

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.

None yet

1 participant