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

[stable23] fix: menu bubble size at the end of the line #2277

Merged
merged 4 commits into from
Apr 6, 2022

Conversation

max-nextcloud
Copy link
Collaborator

@max-nextcloud max-nextcloud commented Apr 5, 2022

Summary

When selecting the right-most chars in a line
the menu bubble was getting too small.

Measure the menu bubble when it is drawn but still hidden.
Calculate its position based on the editor width and the measured bubble width.

@max-nextcloud max-nextcloud changed the title Backport/2262/stable23] fix: menu bubble size at the end of the line [stable23] fix: menu bubble size at the end of the line Apr 5, 2022
@max-nextcloud max-nextcloud changed the base branch from master to stable23 April 5, 2022 08:51
Compute menu bubble position without translateX.
The previous approach made the bubble shrink
towards the end of the line.

Signed-off-by: Max <max@nextcloud.com>
When selecting the right-most chars in a line
the menu bubble was getting too small.

Meassure the menu bubble when it is drawn but still hidden.
Calculate its position based on the editor width and the meassured bubble width.

Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
Signed-off-by: Max <max@nextcloud.com>
@juliushaertl juliushaertl merged commit 36f4ae9 into stable23 Apr 6, 2022
@delete-merged-branch delete-merged-branch bot deleted the backport/2262/stable23 branch April 6, 2022 11:23
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.

2 participants