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: apply padding style properly for VirtualStack #330

Merged
merged 1 commit into from
Feb 20, 2024
Merged

fix: apply padding style properly for VirtualStack #330

merged 1 commit into from
Feb 20, 2024

Conversation

I-Info
Copy link
Contributor

@I-Info I-Info commented Feb 20, 2024

Problem

Current implementation of VirtualStack will causing some interaction issues when using padding styles.
Such as the textbox interactive area is incompatible with the UI drawing area (the padding causes offset between them) making mouse cursor and clicking behave weird.
It can be discovered in the settings page of Lapce editor(nightly-43b54d0).

Fixes

This PR tries to apply the padding styles to the internal node during the layout stage rather than using offset in drawing context during the paint stage.

@dzhou121 dzhou121 merged commit 109ea66 into lapce:main Feb 20, 2024
7 checks passed
jrmoulton pushed a commit to jrmoulton/floem that referenced this pull request Mar 4, 2024
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