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

Align the selection rectangle top position with the caret top position #248

Merged
merged 1 commit into from
Aug 30, 2022

Conversation

danipen
Copy link
Collaborator

@danipen danipen commented Aug 30, 2022

This PR aligns the position of the selection with the position of the caret.

The Caret is using the VisualYPosition.TextTop to calculate the position. So also use that method to calculate the VisualYPosition for a line when calculating the y position of the selection rectangle.

@danipen danipen requested a review from Gillibald August 30, 2022 07:37
@danipen danipen merged commit a70c0ef into master Aug 30, 2022
@Takoooooo Takoooooo deleted the align-selection-rectangle-with-caret branch November 30, 2022 14:27
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