Skip to content

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
@max-nextcloud max-nextcloud force-pushed the backport/2262/stable23 branch from 8683e0d to dd3488c Compare April 5, 2022 08:55
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 max-nextcloud force-pushed the backport/2262/stable23 branch from dd3488c to dc34d7f Compare April 5, 2022 09:02
@juliusknorr juliusknorr 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.

3 participants