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 canvas underline is cut off. #4664

Merged
merged 2 commits into from
Aug 11, 2023

Conversation

tisilent
Copy link
Contributor

fix #4653

Comment on lines 535 to 539
const yTop = restrictToCellHeight ?
Math.ceil(padding + this._config.deviceCharHeight) - yOffset - lineWidth * 2 :
Math.ceil(padding + this._config.deviceCharHeight) - yOffset;
const yMid = yTop + lineWidth;
const yBot = yTop + lineWidth * 2;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, just the sort of thing I was thinking!

I'll keep a look out for any regressions as we are handling decimal values slightly differently, it seems to work after a quick test though and the change should only be with yMid which is for curly

@Tyriar Tyriar added this to the 5.3.0 milestone Aug 11, 2023
@Tyriar Tyriar self-assigned this Aug 11, 2023
@Tyriar Tyriar enabled auto-merge August 11, 2023 16:50
@Tyriar Tyriar merged commit 4b2f774 into xtermjs:master Aug 11, 2023
8 checks passed
@tisilent tisilent deleted the fix-canvas-underline-cutoff branch August 12, 2023 11:03
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.

canvas renderer curly underline is cut off
2 participants