Skip to content

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

Merged
juliusknorr merged 4 commits into
stable23from
backport/2262/stable23
Apr 6, 2022
Merged

[stable23] fix: menu bubble size at the end of the line#2277
juliusknorr merged 4 commits into
stable23from
backport/2262/stable23

Conversation

@max-nextcloud

@max-nextcloudmax-nextcloud commented Apr 5, 2022

Copy link
Copy Markdown
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.

@max-nextcloudmax-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 lineApr 5, 2022
@max-nextcloud
max-nextcloud changed the base branch from master to stable23April 5, 2022 08:51
@max-nextcloud
max-nextcloudforce-pushed the backport/2262/stable23 branch from 8683e0d to dd3488cCompareApril 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 <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>
@juliusknorr
juliusknorr merged commit 36f4ae9 into stable23Apr 6, 2022
@delete-merged-branch
delete-merged-branchBot deleted the backport/2262/stable23 branch April 6, 2022 11:23
@blizzzblizzz mentioned this pull request Apr 13, 2022
Sign up for freeto 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

@max-nextcloud@juliusknorr