Fix extent for text decoration (#2308)

This commit is contained in:
Eric Biedert 2023-10-04 10:56:55 +02:00 committed by GitHub
parent a4e357fb37
commit 55095246bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -403,7 +403,7 @@ pub(super) fn decorate(
let min_width = 0.162 * text.size;
let start = pos.x - deco.extent;
let end = pos.x + (width + 2.0 * deco.extent);
let end = pos.x + width + deco.extent;
let mut push_segment = |from: Abs, to: Abs, prepend: bool| {
let origin = Point::new(from, pos.y + offset);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 54 KiB