dotnet-ad / dotnet-ad/SkiaSharp.Components

Label with spans renders incorrectly inside of a padding element

Open
#6 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
77
Forks
13
PR merge metrics
No merged PRs in 30d

Description

I know this project hasn't seen much love lately... I'm hoping its not totally dead. I have a need to generate images in a templated type way, and have found nothing better yet, to simply take a SKCanvas, and start laying out elements on it.

I took the basic example of the grid, with the title/image/icon/etc, and put it within a padding element with a margin of 20. Everything including regular labels render exactly as expected, but rendering the label with multiple spans, seems to ignore the padding, and appears left 0, and 20px above where I'd expect.

Debugging, I see output that shows the grid cell tries to render `[Label:] Layout in {Left=0,Top=100,Width=460,Height=200}` (with no compensation for the padding).

Just hoping someone sees this, and has an idea of what might be causing it.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.