Skip to content

Conversation

@max-nextcloud
Copy link
Collaborator

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.

Compute menu bubble position without translateX.
The previous approach made the bubble shrink
towards the end of the line.

Signed-off-by: Max <[email protected]>
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 <[email protected]>
@max-nextcloud
Copy link
Collaborator Author

/backport to stable23

@max-nextcloud max-nextcloud merged commit 8001435 into stable22 Mar 31, 2022
@delete-merged-branch delete-merged-branch bot deleted the fix/menu-bubble-position branch March 31, 2022 07:54
@backportbot-nextcloud
Copy link

The backport to stable23 failed. Please do this backport manually.

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.

4 participants